|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.Syntax.ASTBase fmrisc.Syntax.ExpressionBase
public abstract class ExpressionBase
Base class of all expressions (terms and formulas)
Constructor Summary | |
---|---|
ExpressionBase()
|
Method Summary | |
---|---|
abstract int |
getPriority()
get binding level for printing (lower numbers mean greater binding power) |
void |
printPriority(int treshold,
java.io.PrintWriter out)
print expression, use parentheses if priority is greater than treshold |
Methods inherited from class fmrisc.Syntax.ASTBase |
---|
print, printCore, printParens, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fmrisc.Syntax.Expression |
---|
instantiate |
Methods inherited from interface fmrisc.Syntax.AST |
---|
accept, print, printCore, printParens, toString |
Constructor Detail |
---|
public ExpressionBase()
Method Detail |
---|
public abstract int getPriority()
getPriority
in interface Expression
public void printPriority(int treshold, java.io.PrintWriter out)
printPriority
in interface Expression
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 |