|
||||||||||
| 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.PrimitiveType
edu.ksu.cis.projects.bogor.type.EnumType
public final class EnumType
Represents an enum type.
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.type.Type |
|---|
hashCode, typeId |
| Method Summary | |
|---|---|
void |
addEnumConstant(String enumConstant)
Adds an enum constant. |
void |
dispose()
Removes reference to id and clears enum constants. |
boolean |
equals(Object o)
Checks whether this object is equal to another object. |
String |
getEnumConstant(int index)
Gets an enum constant at a specified index. |
int |
getEnumConstantCount()
Gets the number of enum constants. |
int |
getEnumConstantIndex(String enumConstant)
Gets an index of an enum constant. |
String |
getId()
Gets the id. |
boolean |
hasEnumConstant(String enumConstant)
Determine whether an enum constant is an enum constant of this enum type. |
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. |
String |
toVerboseString()
Returns the verbose 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 |
| Method Detail |
|---|
public String getEnumConstant(int index)
index - The index of the enum constant.
public int getEnumConstantCount()
public int getEnumConstantIndex(String enumConstant)
enumConstant - The name of the enum constant. Must be an enum constant of
this enum type.
public String getId()
public void addEnumConstant(String enumConstant)
enumConstant - The enum constant. Must be non-null. This enum must not
already contains the enum constant.public void dispose()
public boolean equals(Object o)
equals in class Objecto - Another object to check equality to.
public boolean hasEnumConstant(String enumConstant)
enumConstant - The enum constant. Must be non-null.
public String toString()
toString in class Objectpublic String toVerboseString()
public ASTType toASTType()
toASTType in class Typenull if the type is undeclarable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||