coins.ast.stmnt
Class TreeStmnt

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.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

Field Summary
protected  ASTree left
           
protected  ASTree right
           
 
Constructor Summary
protected TreeStmnt(ASTree _left, ASTree _right, java.lang.String fname, int line)
           
protected TreeStmnt(java.lang.String fname, int line)
           
 
Method Summary
 java.lang.String fileName()
          Returns the file name including the statement.
 ASTree getLeft()
           
 ASTree getRight()
           
protected  java.lang.String getTag()
          Returns the type of this node.
 int lineNumber()
          Returns the line number of the statement.
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 
Methods inherited from class coins.ast.ASTree
accept, putSeparator, rightToString, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

left

protected ASTree left

right

protected ASTree right
Constructor Detail

TreeStmnt

protected TreeStmnt(java.lang.String fname,
                    int line)

TreeStmnt

protected TreeStmnt(ASTree _left,
                    ASTree _right,
                    java.lang.String fname,
                    int line)
Method Detail

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