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

Public Member Functions

String toString ()
 

Package Functions

 Apply (Syntax fun, Syntax... args)
 
HMType hm (HashMap< String, HMType > env, HashSet< HMVar > nongen)
 

Package Attributes

final Syntax[] _args
 
final Syntax _fun
 

Detailed Description

Definition at line 138 of file HM1.java.

Constructor & Destructor Documentation

◆ Apply()

com.cliffc.aa.HM.HM1.Apply.Apply ( Syntax  fun,
Syntax...  args 
)
package

Definition at line 141 of file HM1.java.

141 { _fun=fun; _args=args; }

References com.cliffc.aa.HM.HM1.Apply._args, and com.cliffc.aa.HM.HM1.Apply._fun.

Member Function Documentation

◆ hm()

HMType com.cliffc.aa.HM.HM1.Apply.hm ( HashMap< String, HMType env,
HashSet< HMVar nongen 
)
package

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

Definition at line 143 of file HM1.java.

143  {
144  HMType tfun = _fun.hm(env,nongen);
145 
146  HMType[] targs = new HMType[_args.length+1];
147  for( int i=0; i<_args.length; i++ )
148  targs[i] = _args[i].hm(env,nongen);
149  HMType trez = targs[_args.length] = new HMVar();
150  HMType nfun = Oper.fun(targs);
151  nfun.union(tfun);
152  return trez;
153  }

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

Here is the call graph for this function:

◆ toString()

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

Definition at line 142 of file HM1.java.

142 { return "("+_fun+" "+Arrays.deepToString(_args)+")"; }

References com.cliffc.aa.HM.HM1.Apply._args, and com.cliffc.aa.HM.HM1.Apply._fun.

Member Data Documentation

◆ _args

final Syntax [] com.cliffc.aa.HM.HM1.Apply._args
package

◆ _fun

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

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM1.Apply._fun
final Syntax _fun
Definition: HM1.java:139
com.cliffc.aa.HM.HM1.Apply._args
final Syntax[] _args
Definition: HM1.java:140
com.cliffc.aa.HM.HM1.Syntax.hm
abstract HMType hm(HashMap< String, HMType > env, HashSet< HMVar > nongen)
com.cliffc.aa.HM.HM1.Apply.hm
HMType hm(HashMap< String, HMType > env, HashSet< HMVar > nongen)
Definition: HM1.java:143