Modifier and Type | Field and Description |
---|---|
static java.lang.String |
operator |
static int |
precedence |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static NegationTerm |
construct(Term base)
Construct an arithmetic negation Term.
|
java.lang.String |
getOperator()
Get textual representation of operator.
|
int |
getPrecedence()
Get precedence value of the Term operator
(higher precedence value means higher binding power)
|
getBase, getType, setType
acceptChildren
getPosition, isLeftAssociative, isRightAssociative, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLeftAssociative, isRightAssociative
getPosition, setPosition
acceptChildren, print, printCore, toString, toStringCore
public static final int precedence
public static final java.lang.String operator
public static NegationTerm construct(Term base)
base
- the base Term.public int getPrecedence()
getPrecedence
in interface Expression
getPrecedence
in class ExpressionBase
public java.lang.String getOperator()
getOperator
in class UnaryExpression
public void accept(ASTVisitorOld visitor)
public void accept(ASTVisitor visitor)