|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Statement
edu.ksu.cis.projects.bogor.ast.AtomicStatement
public class AtomicStatement
The atomic statement AST.
| Field Summary | |
|---|---|
protected Statement |
stmt
Holds the statement. |
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
AtomicStatement(Statement stmt)
Default constructor. |
|
| Method Summary | |
|---|---|
AtomicStatement |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes stmt. |
Statement |
getStatement()
Gets the statement. |
void |
setStatement(Statement stmt)
Sets the statement. |
protected String |
toString(String indent)
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Statement |
|---|
getParent, setParent, toString |
| 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 |
|---|
protected Statement stmt
| Constructor Detail |
|---|
public AtomicStatement(Statement stmt)
stmt - The statement. Must be non-null.| Method Detail |
|---|
public AtomicStatement clone()
clone in class Statementpublic void dispose()
dispose in interface Disposabledispose in class Statementpublic Statement getStatement()
public void setStatement(Statement stmt)
stmt - The statement. Must be non-null.public void visit(ASTVisitor visitor)
visit in class Nodeprotected String toString(String indent)
toString in class Statementindent - The indentation for this statement.
"atomic\n" +
" stmt\n" +
"end\n".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||