cgp.runtime
Class FunctionType
java.lang.Object
|
+--cgp.runtime.Type
|
+--cgp.runtime.FunctionType
- public class FunctionType
- extends Type
Methods inherited from class cgp.runtime.Type |
addOp,
andOp,
divideOp,
eqOp,
geOp,
getAttr,
getKBStack,
getNthOp,
getScopeStack,
getType,
gtOp,
invokeMemberFunc,
isOp,
leOp,
ltOp,
modulusOp,
multiplyOp,
negateOp,
neOp,
notOp,
operationError,
orOp,
setAttr,
setKBStack,
setNthOp,
setScopeStack,
setType,
subtractOp |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
ANON_NAME
private static java.lang.String ANON_NAME
name
private java.lang.String name
formals
private FormalParameter[] formals
code
private antlr.collections.AST code
env
private Scope env
FunctionType
public FunctionType(java.lang.String name,
FormalParameter[] formals,
antlr.collections.AST code)
FunctionType
public FunctionType(FormalParameter[] formals,
antlr.collections.AST code)
getId
public java.lang.String getId()
getFormals
public FormalParameter[] getFormals()
getCode
public antlr.collections.AST getCode()
getEnv
public Scope getEnv()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
getName
public StringType getName()
- Getter and setter methods for attributes.
getArgcount
public NumberType getArgcount()