public final class NegationExpression extends UnaryValueExpression
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
operator |
static int |
precedence |
base
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
static NegationExpression |
construct(ValueExpression base)
Construct an arithmetic negation expression.
|
java.lang.String |
getOperator()
Get textual representation of operator.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
accept, acceptChildren
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
print, printCore, toString, toStringCore
public static final int precedence
public static final java.lang.String operator
public static NegationExpression construct(ValueExpression base)
base
- the base expression.public int getPrecedence()
public java.lang.String getOperator()
getOperator
in class UnaryValueExpression
public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class UnaryValueExpression
visitor
- the visitor who is accepted by this node.