public interface LazyOperator
Modifier and Type | Method and Description |
---|---|
Expression.LazyNumber |
eval(Expression.LazyNumber v1,
Expression.LazyNumber v2)
Implementation for this operator.
|
java.lang.String |
getOper()
Gets the String that is used to denote the operator in the expression.
|
int |
getPrecedence()
Gets the precedence value of this operator.
|
boolean |
isBooleanOperator()
Gets whether this operator evaluates to a boolean expression.
|
boolean |
isLeftAssoc()
Gets whether this operator is left associative (
true ) or if
this operator is right associative (false ). |
java.lang.String getOper()
int getPrecedence()
boolean isLeftAssoc()
true
) or if
this operator is right associative (false
).true
if this operator is left associative.boolean isBooleanOperator()
true
if this operator evaluates to a boolean
expression.Expression.LazyNumber eval(Expression.LazyNumber v1, Expression.LazyNumber v2)
v1
- Operand 1.v2
- Operand 2.