|
||||||||||
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.ASTArrayType
public final class ASTArrayType
Array type AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ASTArrayType(ASTType type,
int rank)
Default constructor. |
Method Summary | |
---|---|
ASTArrayType |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes length and type. |
boolean |
equals(Object o)
|
int |
getRank()
Gets the rank. |
ASTType |
getType()
Gets the type. |
int |
hashCode()
|
void |
setRank(int newRank)
Sets the rank. |
void |
setType(ASTType newType)
Sets the 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 ASTArrayType(ASTType type, int rank)
type
- The type. Must be non-null.rank
- The rank. Must be greater than zero.Method Detail |
---|
public void setRank(int newRank)
newRank
- The new rank. Must be greater than zero.public int getRank()
public void setType(ASTType newType)
newType
- The new type. Must be non-null. Must not be an instance of ASTArrayType.public ASTType getType()
public ASTArrayType clone()
clone
in class ASTType
public void dispose()
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 |