|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.projects.bogor.type.Type
edu.ksu.cis.projects.bogor.type.NonPrimitiveType
edu.ksu.cis.projects.bogor.type.LockType
edu.ksu.cis.projects.bogor.type.ArrayType
public final class ArrayType
Represents an array type.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.type.Type |
---|
hashCode, typeId |
Constructor Summary | |
---|---|
ArrayType(Type baseType,
int rank)
Default constructor. |
Method Summary | |
---|---|
void |
dispose()
Removes reference to baseType. |
boolean |
equals(Object o)
Checks whether this object is equal to another object. |
Type |
getBaseType()
Gets the base type. |
int |
getRank()
Gets the rank. |
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 ArrayType(Type baseType, int rank)
baseType
- The base type of this array.
Must be non-null.
Must be not instance of ArrayType, VoidType, or UnknownType.rank
- The rank of the array.
Must be greater than zero.Method Detail |
---|
public Type getBaseType()
public int getRank()
public void dispose()
dispose
in interface Disposable
dispose
in class LockType
public boolean equals(Object o)
equals
in class LockType
o
- Another object to check equality to.
public String toString()
toString
in class LockType
public ASTType toASTType()
toASTType
in class LockType
null
if the type is undeclarable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |