|
||||||||||
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.ActionExtension
public class ActionExtension
Represents an action extension.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ActionExtension(String id,
List<String> typeVarIds,
List<TypedId> params,
BitSet paramLazyModifiers,
boolean variableParameterLength)
Default constructor. |
Method Summary | |
---|---|
ActionExtension |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references. |
String |
getId()
Gets the action 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 action extension supports variable length parameters. |
void |
setId(String newId)
Sets the action extension id. |
void |
setParameterLazyModifiers(BitSet newParameterLazyModifiers)
Sets the parameter type lazy modifiers. |
void |
setParameters(List<TypedId> newParameters)
Sets the parameter typess. |
void |
setTypeVarIds(List<String> newTypeVarIds)
Sets the type var ids. |
void |
setVariableParameterLength(boolean newVariableParameterLength)
Sets whether this action 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 ActionExtension(String id, List<String> typeVarIds, List<TypedId> params, BitSet paramLazyModifiers, boolean variableParameterLength)
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 action extension supports variable
length parameters.Method Detail |
---|
public void setId(String newId)
newId
- The new action 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 ActionExtension 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 |