org.jpox.store.expression
Class ScalarExpression.DyadicOperator
java.lang.Object
org.jpox.store.expression.ScalarExpression.Operator
org.jpox.store.expression.ScalarExpression.DyadicOperator
- Enclosing class:
- ScalarExpression
- protected static class ScalarExpression.DyadicOperator
- extends ScalarExpression.Operator
"Dyadic" operator performs operation on one or two operands
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScalarExpression.DyadicOperator
public ScalarExpression.DyadicOperator(java.lang.String symbol,
int precedence,
boolean isAssociative)
- Dyadic operator
- Parameters:
symbol
- the source text or symbol of an operator. e.g =, ==, +, /, >, <, etcprecedence
- the order of precedence where the expression is compiledisAssociative
- true if associative operator. An associative operator is one for which parentheses can be inserted and removed without changing the meaning of the expression
isHigherThanLeftSide
public boolean isHigherThanLeftSide(ScalarExpression.Operator op)
- Checks if this operation is higher than operator
op
in left side of the expression
- Parameters:
op
- the operator in the left side of the expression
- Returns:
- true if this operation is higher than operator
op
in left side of the expression
isHigherThanRightSide
public boolean isHigherThanRightSide(ScalarExpression.Operator op)
- Checks if this operation is higher than operator
op
in right side of the expression
- Parameters:
op
- the operator in the right side of the expression
- Returns:
- true if this operation is higher than operator
op
in right side of the expression
Copyright © -2007 . All Rights Reserved.