|
||||||||||
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.ExpExtension
public class ExpExtension
Represents an exp extension.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ExpExtension(ASTType expType,
String id,
List<String> typeVarIds,
List<TypedId> params,
BitSet paramLazyModifiers,
boolean variableParameterLength)
Default constructor. |
Method Summary | |
---|---|
ExpExtension |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references. |
ASTType |
getExpType()
Gets the exp type of this exp extension. |
String |
getId()
Gets the exp extension id. |
TypedId |
getParameter(int index)
Gets the fixed parameter type at a particular index. |
int |
getParameterCount()
Gets the number of fixed parameter types. |
boolean |
getParameterLazyModifier(int index)
Gets the parameter lazy modifier at a particular index. |
String |
getTypeVariableId(int index)
Gets the fixed type variable at a particular index. |
int |
getTypeVariableIdCount()
Gets the number of fixed type variables. |
boolean |
getVariableParameterLength()
Determines whether this exp extension supports variable length parameters. |
void |
setExpType(ASTType newExpType)
Sets the return type of this exp extension. |
void |
setId(String newId)
Sets the exp extension id. |
void |
setParameterLazyModifiers(BitSet newParameterLazyModifiers)
Sets the parameter type lazy modifiers. |
void |
setParameters(List<TypedId> newParameters)
Sets the parameter types. |
void |
setTypeVarIds(List<String> newTypeVarIds)
Sets the type var ids. |
void |
setVariableParameterLength(boolean newVariableParameterLength)
Sets whether this exp extension supports variable length parameters |
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 ExpExtension(ASTType expType, String id, List<String> typeVarIds, List<TypedId> params, BitSet paramLazyModifiers, boolean variableParameterLength)
expType
- The exp type of this exp extension.id
- The exp extension 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.params
- The fixed parameter types. Must be non-null.paramLazyModifiers
- The parameter type lazy modifiers. Must be non-null.variableParameterLength
- Indicates whether this type extension supports variable length
parameters.Method Detail |
---|
public void setExpType(ASTType newExpType)
newExpType
- The new exp type of this exp extension. Must be non-null.public ASTType getExpType()
public void setId(String newId)
newId
- The new exp extension id. Must be non-null.public String getId()
public boolean getParameterLazyModifier(int index)
index
- The index of the parameter type. Must be at least zero and at
most less than the number of fixed parameter types.
public void setParameterLazyModifiers(BitSet newParameterLazyModifiers)
newParameterLazyModifiers
- The new parameter type lazy modifiers. Must be non-null.public TypedId getParameter(int index)
index
- The index of the parameter type. Must be at least zero and at
most less than the number of fixed parameter types.
public int getParameterCount()
public void setParameters(List<TypedId> newParameters)
newParameters
- The new fixed parameter types. Must be non-null.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 void setVariableParameterLength(boolean newVariableParameterLength)
newVariableParameterLength
- The new variable parameter length.public boolean getVariableParameterLength()
public ExpExtension 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 |