|
||||||||||
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.ApplyExp
public final class ApplyExp
Apply exp AST.
Field Summary |
---|
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 | |
---|---|
ApplyExp(String id,
List<? extends Exp> args)
Default constructor. |
Method Summary | |
---|---|
ApplyExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id, and disposes args. |
Exp |
getArg(int index)
Gets an argument at a specified index. |
int |
getArgCount()
Gets the number of arguments. |
String |
getId()
Gets the id. |
void |
setArgs(List<? extends Exp> newArgs)
Sets the arguments. |
void |
setId(String newId)
Sets the id. |
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 |
Constructor Detail |
---|
public ApplyExp(String id, List<? extends Exp> args)
id
- The id. Must be non-null.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 argument. Must be between 0 and getArgCount() -
1, inclusive.
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 setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public ApplyExp 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 |