coins.ast
Class Pragma
java.lang.Object
coins.ast.ASTree
coins.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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Pragma
public Pragma(java.lang.String text,
java.lang.String name,
int line)
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