|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfmrisc.AST.ASTBase
fmrisc.AST.Identifier
Handling of identifiers.
Constructor Summary | |
Identifier(java.lang.String name)
construct identifier from name |
Method Summary | |
java.lang.String |
getName()
returns name of identifier |
void |
print(java.io.PrintWriter out)
Prints text representation on out (without new line termination). |
void |
printCore(java.io.PrintWriter out)
Prints text representation on out (without new line termination). |
void |
printPriority(int treshold,
java.io.PrintWriter out)
print expression, use parentheses if priority is greater than treshold |
void |
setName(java.lang.String name)
set name of identifier |
Methods inherited from class fmrisc.AST.ASTBase |
printParens, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Identifier(java.lang.String name)
name
- the text representation of the identifierMethod Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the identifier namepublic void printCore(java.io.PrintWriter out)
printCore
in interface AST
printCore
in class ASTBase
out
- the stream on which the text is writtenpublic void print(java.io.PrintWriter out)
print
in interface AST
print
in class ASTBase
out
- the stream on which the text is writtenpublic void printPriority(int treshold, java.io.PrintWriter out)
treshold
- priority level of enclosing expressionout
- writer to print expression on
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |