|
||||||||||
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.Action edu.ksu.cis.projects.bogor.ast.PrintAction
public final class PrintAction
Print action AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
PrintAction(List<? extends PrintArg> printArgs)
Default constructor. |
Method Summary | |
---|---|
PrintAction |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes printArgs. |
PrintArg |
getPrintArg(int index)
Gets a print argument at a specified index. |
int |
getPrintArgCount()
Gets the number of print arguments. |
void |
setPrintArgs(List<? extends PrintArg> newPrintArgs)
Sets the print arguments. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Action |
---|
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 PrintAction(List<? extends PrintArg> printArgs)
printArgs
- The print arguments. Must be non-null. Each element must be
instance of PrintArg.Method Detail |
---|
public PrintArg getPrintArg(int index)
index
- The index of the print argument. Must be between 0 and
getPrintArgCount() - 1, inclusive.
public int getPrintArgCount()
public void setPrintArgs(List<? extends PrintArg> newPrintArgs)
newPrintArgs
- The new print arguments. Must be non-null. Each element must
be instance of PrintArg.public PrintAction clone()
clone
in class Action
public void dispose()
dispose
in interface Disposable
dispose
in class Action
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 |