|
||||||||||
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.Exp edu.ksu.cis.projects.bogor.ast.ExtExp
public class ExtExp
Represents an action or an exp extension usage.
Field Summary | |
---|---|
static int |
TYPE_VAR_ARGS_KEY
Holds the property key for type variable arguments of this node. |
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
TYPE |
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ExtExp(String extId,
String id,
List<? extends ASTType> typeVarArgs,
List<? extends Exp> args)
Default constructor. |
Method Summary | |
---|---|
ExtExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references. |
Exp |
getArg(int index)
Gets the argat a particular index. |
int |
getArgCount()
Gets the number of args. |
String |
getExtId()
Gets the extension id. |
String |
getId()
Gets the exp extension id. |
ASTType |
getTypeVariableArg(int index)
Gets the fixed type variable at a particular index. |
int |
getTypeVariableArgCount()
Gets the number of arguments for type variables. |
void |
setArgs(List<? extends Exp> newArgs)
Sets the arguments. |
void |
setExtId(String newExtId)
Sets the extension id. |
void |
setId(String newId)
Sets the exp extension id. |
void |
setTypeVarArgs(List<? extends ASTType> newTypeVarArgs)
Sets the arguments for the type vars. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
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 |
Field Detail |
---|
public static final int TYPE_VAR_ARGS_KEY
Constructor Detail |
---|
public ExtExp(String extId, String id, List<? extends ASTType> typeVarArgs, List<? extends Exp> args)
extId
- The extension id. Must be non-null.id
- The exp extension id. Must be non-null.typeVarArgs
- The arguments for the type vars. Must be non-null. Each
element must be instance of ASTType.args
- The arguments. Must be non-null. Each element must be instance
of Exp.Method Detail |
---|
public Exp getArg(int index)
index
- The index of the arg. Must be at least zero and at most less
than the number of args.
public int getArgCount()
public void setArgs(List<? extends Exp> newArgs)
newArgs
- The new arguments. Must be non-null. Each element must be
instance of Exp.public void setExtId(String newExtId)
newExtId
- The new exp extension id. Must be non-null.public String getExtId()
public void setId(String newId)
newId
- The new exp extension id. Must be non-null.public String getId()
public void setTypeVarArgs(List<? extends ASTType> newTypeVarArgs)
newTypeVarArgs
- The new arguments for the type vars. Must be non-null. Each
element must be instance of ASTType.public ASTType getTypeVariableArg(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 getTypeVariableArgCount()
public ExtExp clone()
clone
in class Exp
public void dispose()
dispose
in interface Disposable
dispose
in class Exp
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 |