coins.ast.stmnt
Class TreeStmnt
java.lang.Object
coins.ast.ASTree
coins.ast.stmnt.TreeStmnt
- All Implemented Interfaces:
- java.io.Serializable, Stmnt
- Direct Known Subclasses:
- DoStmnt, ExpressionStmnt, ForStmnt, IfStmnt, ReturnStmnt, SwitchStmnt, WhileStmnt
- public abstract class TreeStmnt
- extends ASTree
- implements Stmnt
The super class of statements that contain nested statements.
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
TreeStmnt(ASTree _left,
ASTree _right,
java.lang.String fname,
int line)
|
protected |
TreeStmnt(java.lang.String fname,
int line)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
left
protected ASTree left
right
protected ASTree right
TreeStmnt
protected TreeStmnt(java.lang.String fname,
int line)
TreeStmnt
protected TreeStmnt(ASTree _left,
ASTree _right,
java.lang.String fname,
int line)
fileName
public java.lang.String fileName()
- Description copied from interface:
Stmnt
- Returns the file name including the statement.
- Specified by:
fileName in interface Stmnt
lineNumber
public int lineNumber()
- Description copied from interface:
Stmnt
- Returns the line number of the statement.
- Specified by:
lineNumber in interface Stmnt
getTag
protected java.lang.String getTag()
- Description copied from class:
ASTree
- Returns the type of this node. This method is used by
toString().
- Overrides:
getTag in class ASTree
getLeft
public ASTree getLeft()
- Specified by:
getLeft in class ASTree
getRight
public ASTree getRight()
- Specified by:
getRight in class ASTree
setLeft
public void setLeft(ASTree _left)
- Specified by:
setLeft in class ASTree
setRight
public void setRight(ASTree _right)
- Specified by:
setRight in class ASTree