public abstract class ExpressionBase extends ASTBase implements Expression
Constructor and Description |
---|
ExpressionBase() |
Modifier and Type | Method and Description |
---|---|
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
|
print, printCore, printParens, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
instantiate
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