|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.type.Type edu.ksu.cis.projects.bogor.type.NonPrimitiveType edu.ksu.cis.projects.bogor.type.FunType
public class FunType
Represents a functional type.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.type.Type |
---|
hashCode, typeId |
Constructor Summary | |
---|---|
FunType(Type[] paramTypes,
Type returnType)
Default constructor. |
Method Summary | |
---|---|
void |
dispose()
Remove references. |
boolean |
equals(Object o)
Checks whether this object is equal to another object. |
Type |
getParamType(int index)
Gets the parameter type at a certain index. |
int |
getParamTypeCount()
Gets the number of parameter types. |
Type |
getReturnType()
Gets the return type of this functional type. |
ASTType |
toASTType()
Get a newly constructed (unowned) syntax tree node suitable for declaring this type statically. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class edu.ksu.cis.projects.bogor.type.Type |
---|
getTypeId, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunType(Type[] paramTypes, Type returnType)
paramTypes
- The parameter types of this functional type. Must be non-null.
Each element must be non-null.returnType
- The return type of this functional type. Must be non-null.Method Detail |
---|
public Type getParamType(int index)
index
- The index of the parameter. Must be between 0 and
getParamTypeCount() - 1.
public int getParamTypeCount()
public Type getReturnType()
public void dispose()
Disposable
public boolean equals(Object o)
equals
in class Object
o
- Another object to check equality to.
public String toString()
toString
in class Object
public ASTType toASTType()
toASTType
in class Type
null
if the type is undeclarable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |