|
||||||||||
| 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.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 ASTTypepublic void dispose()
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 | |||||||||