public final class TimesExpression extends BinaryValueExpression
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
operator |
static int |
precedence |
first, second
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
static TimesExpression |
construct(ValueExpression first,
ValueExpression second)
Construct a product 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 TimesExpression construct(ValueExpression first, ValueExpression second)
first
- the first (left) part.second
- the right (second) part.public int getPrecedence()
public java.lang.String getOperator()
getOperator
in class BinaryValueExpression
public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class BinaryValueExpression
visitor
- the visitor who is accepted by this node.