aa
com.cliffc.aa.HM.HM2.Ident Class Reference
Inheritance diagram for com.cliffc.aa.HM.HM2.Ident:
[legend]
Collaboration diagram for com.cliffc.aa.HM.HM2.Ident:
[legend]

Public Member Functions

String toString ()
 

Package Functions

 Ident (String name)
 
void get_ids ()
 
HMType hm (HashSet< HMVar > nongen)
 

Package Attributes

final String _name
 

Detailed Description

Definition at line 114 of file HM2.java.

Constructor & Destructor Documentation

◆ Ident()

com.cliffc.aa.HM.HM2.Ident.Ident ( String  name)
package

Definition at line 116 of file HM2.java.

116 { _name=name; }

References com.cliffc.aa.HM.HM2.Ident._name.

Member Function Documentation

◆ get_ids()

void com.cliffc.aa.HM.HM2.Ident.get_ids ( )
package

Reimplemented from com.cliffc.aa.HM.HM2.Syntax.

Definition at line 125 of file HM2.java.

125 {}

◆ hm()

HMType com.cliffc.aa.HM.HM2.Ident.hm ( HashSet< HMVar nongen)
package

Reimplemented from com.cliffc.aa.HM.HM2.Syntax.

Definition at line 118 of file HM2.java.

118  {
119  HMType t = ENV.get(_name);
120  if( t==null )
121  throw new RuntimeException("Parse error, "+_name+" is undefined");
122  HMType f = t.fresh(nongen);
123  return f;
124  }

References com.cliffc.aa.HM.HM2.Ident._name, com.cliffc.aa.HM.HM2.ENV, and com.cliffc.aa.HM.HM2.HMType.fresh().

Here is the call graph for this function:

◆ toString()

String com.cliffc.aa.HM.HM2.Ident.toString ( )

Definition at line 117 of file HM2.java.

117 { return _name; }

References com.cliffc.aa.HM.HM2.Ident._name.

Member Data Documentation

◆ _name

final String com.cliffc.aa.HM.HM2.Ident._name
package

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM2.Ident._name
final String _name
Definition: HM2.java:115
com.cliffc.aa.HM.HM2.ENV
static final HashMap< String, HMType > ENV
Definition: HM2.java:68