|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.Syntax.ASTBase
public abstract class ASTBase
Base class of abstract syntax trees.
Constructor Summary | |
---|---|
ASTBase()
|
Method Summary | |
---|---|
void |
print(java.io.PrintWriter out)
Prints text representation on out (without new line termination). |
abstract void |
printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination). |
void |
printParens(java.io.PrintWriter out)
Prints text representation on out (without new line termination) with parentheses around the whole expression. |
java.lang.String |
toString()
returns string representation of tree |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fmrisc.Syntax.AST |
---|
accept |
Constructor Detail |
---|
public ASTBase()
Method Detail |
---|
public void print(java.io.PrintWriter out)
print
in interface AST
out
- the stream on which the text is writtenpublic void printParens(java.io.PrintWriter out)
printParens
in interface AST
out
- the stream on which the text is writtenpublic abstract void printCore(java.io.PrintWriter out)
printCore
in interface AST
out
- the stream on which the text is writtenpublic java.lang.String toString()
toString
in interface AST
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |