|
||||||||||
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.Extension edu.ksu.cis.projects.bogor.ast.TypeExtension
public class TypeExtension
Represents a type extension.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
TypeExtension(boolean primitive,
String id,
List<String> typeVarIds)
Default constructor. |
Method Summary | |
---|---|
TypeExtension |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references. |
String |
getId()
Gets the type extension id. |
boolean |
getPrimitive()
|
String |
getTypeVariableId(int index)
Gets the fixed type variable at a particular index. |
int |
getTypeVariableIdCount()
Gets the number of fixed type variables. |
void |
setId(String newId)
Sets the type extension id. |
void |
setPrimitive(boolean newPrimitive)
|
void |
setTypeVarIds(List<String> newTypeVarIds)
Sets the type var ids. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Extension |
---|
getParent, setParent |
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeExtension(boolean primitive, String id, List<String> typeVarIds)
id
- The extension type id. Must be non-null.typeVarIds
- The fixed type variable ids. Must be non-null. Each element
must be instance of String. Each element must be distinct.Method Detail |
---|
public void setId(String newId)
newId
- The new extension type id. Must be non-null.public String getId()
public void setPrimitive(boolean newPrimitive)
public boolean getPrimitive()
public void setTypeVarIds(List<String> newTypeVarIds)
newTypeVarIds
- The fixed type variable ids. Must be non-null. Each element
must be instance of String. Each element must be distinct.public String getTypeVariableId(int index)
index
- The index of the type variable. Must be at least zero and at
most less than the number of fixed type variables.
public int getTypeVariableIdCount()
public TypeExtension clone()
clone
in class Extension
public void dispose()
dispose
in interface Disposable
dispose
in class Extension
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |