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

Public Member Functions

String toString ()
 

Package Functions

 Apply (Syntax fun, Syntax arg)
 
void get_ids ()
 
HMType hm (HashSet< HMVar > nongen)
 

Package Attributes

final Syntax _arg
 
final Syntax _fun
 

Detailed Description

Definition at line 157 of file HM2.java.

Constructor & Destructor Documentation

◆ Apply()

com.cliffc.aa.HM.HM2.Apply.Apply ( Syntax  fun,
Syntax  arg 
)
package

Definition at line 159 of file HM2.java.

159 { _fun=fun; _arg=arg; }

References com.cliffc.aa.HM.HM2.Apply._arg, and com.cliffc.aa.HM.HM2.Apply._fun.

Member Function Documentation

◆ get_ids()

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

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

Definition at line 169 of file HM2.java.

169 { _fun.get_ids(); _arg.get_ids(); }

References com.cliffc.aa.HM.HM2.Apply._arg, com.cliffc.aa.HM.HM2.Apply._fun, and com.cliffc.aa.HM.HM2.Syntax.get_ids().

Here is the call graph for this function:

◆ hm()

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

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

Definition at line 161 of file HM2.java.

161  {
162  HMType tfun = _fun.hm(nongen);
163  HMType targ = _arg.hm(nongen);
164  HMType trez = new HMVar();
165  HMType nfun = Oper.fun(targ,trez);
166  nfun.union(tfun);
167  return trez;
168  }

References com.cliffc.aa.HM.HM2.Apply._arg, com.cliffc.aa.HM.HM2.Apply._fun, com.cliffc.aa.HM.HM2.Oper.fun(), com.cliffc.aa.HM.HM2.Syntax.hm(), and com.cliffc.aa.HM.HM2.HMType.union().

Here is the call graph for this function:

◆ toString()

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

Definition at line 160 of file HM2.java.

160 { return "("+_fun+" "+_arg+")"; }

References com.cliffc.aa.HM.HM2.Apply._arg, and com.cliffc.aa.HM.HM2.Apply._fun.

Member Data Documentation

◆ _arg

final Syntax com.cliffc.aa.HM.HM2.Apply._arg
package

◆ _fun

final Syntax com.cliffc.aa.HM.HM2.Apply._fun
package

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM2.Syntax.hm
abstract HMType hm(HashSet< HMVar > nongen)
com.cliffc.aa.HM.HM2.Apply._arg
final Syntax _arg
Definition: HM2.java:158
com.cliffc.aa.HM.HM2.Syntax.get_ids
abstract void get_ids()
com.cliffc.aa.HM.HM2.Apply._fun
final Syntax _fun
Definition: HM2.java:158