coins.ast.stmnt
Class GotoStmnt

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.stmnt.LeafStmnt
          extended bycoins.ast.stmnt.GotoStmnt
All Implemented Interfaces:
java.io.Serializable, Stmnt

public class GotoStmnt
extends LeafStmnt

Goto statement.

See Also:
Serialized Form

Constructor Summary
GotoStmnt(java.lang.String fname, int line)
           
 
Method Summary
 void accept(Visitor v)
          Is a method for the visitor pattern.
 java.lang.String fileName()
          Returns the file name including the statement.
 java.lang.String getLabel()
          Returns the destination label.
 ASTree getLeft()
          Returns null.
 ASTree getRight()
          Returns null.
 int lineNumber()
          Returns the line number of the statement.
 void setLabel(java.lang.String name)
           
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 java.lang.String toString()
           
 
Methods inherited from class coins.ast.ASTree
getTag, putSeparator, rightToString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GotoStmnt

public GotoStmnt(java.lang.String fname,
                 int line)
Method Detail

accept

public void accept(Visitor v)
Description copied from class: ASTree
Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

Specified by:
accept in class ASTree

setLabel

public void setLabel(java.lang.String name)

getLabel

public java.lang.String getLabel()
Returns the destination label.


toString

public java.lang.String toString()
Overrides:
toString in class ASTree

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