coins.ast.stmnt
Class LeafStmnt

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.stmnt.LeafStmnt
All Implemented Interfaces:
java.io.Serializable, Stmnt
Direct Known Subclasses:
BreakStmnt, CaseLabel, ContinueStmnt, DefaultLabel, GotoStmnt, NamedLabel, NullStmnt

abstract class LeafStmnt
extends ASTree
implements Stmnt

The super class of statements that do not contain nested statements.


Constructor Summary
protected LeafStmnt(java.lang.String fname, int line)
           
 
Method Summary
 java.lang.String fileName()
          Returns the file name including the statement.
 ASTree getLeft()
          Returns null.
 ASTree getRight()
          Returns null.
 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, getTag, putSeparator, rightToString, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeafStmnt

protected LeafStmnt(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

getLeft

public ASTree getLeft()
Returns null.

Specified by:
getLeft in class ASTree

getRight

public ASTree getRight()
Returns null.

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