|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.ASTType edu.ksu.cis.projects.bogor.ast.ASTExtType
public class ASTExtType
Extension Type AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ASTExtType(String id,
List<? extends ASTType> argTypes)
Default constructor. |
Method Summary | |
---|---|
ASTExtType |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to parent. |
boolean |
equals(Object o)
|
String |
getId()
Gets the fully qualified name of this type extension. |
ASTType |
getTypeArg(int index)
Gets the type argument at a certain index. |
int |
getTypeArgCount()
Gets the number of type arguments of this type extension. |
int |
hashCode()
|
void |
setId(String newId)
Sets the fully qualified name of this type extension. |
void |
setTypeArgs(List<? extends ASTType> newParameterTypes)
Sets the type arguments for this type extension. |
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 ASTExtType(String id, List<? extends ASTType> argTypes)
id
- The fully qualified name of the type extension. Must be
non-null.argTypes
- The type arguments of this type extension. Must be non-null.
Each argument must be non-null.Method Detail |
---|
public void setId(String newId)
newId
- The new fully qualified name for this type extension. Must be
non-null.public String getId()
public ASTType getTypeArg(int index)
index
- The index of the type argument. Must be between 0 and
getTypeArgCount() - 1.
public int getTypeArgCount()
public void setTypeArgs(List<? extends ASTType> newParameterTypes)
newParameterTypes
- The new type arguments for this type extension. Must be
non-null. Each element must be of type ASTType. Sets this
functional type as each element's parent.public ASTExtType clone()
clone
in class ASTType
public void dispose()
ASTType
dispose
in interface Disposable
dispose
in class ASTType
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
public int hashCode()
hashCode
in class ASTType
public boolean equals(Object o)
equals
in class ASTType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |