|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.ASTType
edu.ksu.cis.projects.bogor.ast.ASTFunType
public class ASTFunType
Functional type AST.
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
ASTFunType(List<? extends ASTType> paramTypes,
ASTType returnType)
Default constructor. |
|
| Method Summary | |
|---|---|
ASTFunType |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to parent. |
boolean |
equals(Object o)
|
ASTType |
getParamType(int index)
Gets the parameter type at a certain index. |
int |
getParamTypeCount()
Gets the number of parameter types. |
ASTType |
getReturnType()
Gets the return type of this functional type |
int |
hashCode()
|
void |
setParamTypes(List<? extends ASTType> newParameterTypes)
Sets the parameter types of this functional type. |
void |
setReturnType(ASTType newReturnType)
Sets the return type of this functional type. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.ASTType |
|---|
getParent, setParent |
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ASTFunType(List<? extends ASTType> paramTypes,
ASTType returnType)
paramTypes - The parameter types for this functional types. Must be
non-null. Each element must be of type ASTType. Sets this
functional type as each element's parent.returnType - The return type of this functional type. Must be non-null.
Sets this functional type as its parent.| Method Detail |
|---|
public ASTType getParamType(int index)
index - The index of the parameter. Must be between 0 and
getParamTypeCount() - 1.public int getParamTypeCount()
public void setParamTypes(List<? extends ASTType> newParameterTypes)
newParameterTypes - The new parameter types. Must be non-null. Each element must
be of type ASTType. Sets this functional type as each
element's parent.public void setReturnType(ASTType newReturnType)
newReturnType - The new return type of this functional type. Must be non-null.
Sets this functional type as its parent.public ASTType getReturnType()
public ASTFunType clone()
clone in class ASTTypepublic void dispose()
ASTType
dispose in interface Disposabledispose in class ASTTypepublic String toString()
toString in class Nodepublic void visit(ASTVisitor visitor)
visit in class Nodepublic int hashCode()
hashCode in class ASTTypepublic boolean equals(Object o)
equals in class ASTType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||