coins.ast
Class Pragma

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

public class Pragma
extends ASTree
implements Stmnt

Pragma.

See Also:
Serialized Form

Constructor Summary
Pragma(java.lang.String text, java.lang.String name, 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.
 ASTree getLeft()
           
 ASTree getRight()
           
 java.lang.String getText()
           
 int lineNumber()
          Returns the line number of the statement.
 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

Pragma

public Pragma(java.lang.String text,
              java.lang.String name,
              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

getText

public java.lang.String getText()

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()
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

toString

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