Class Expression.MonadicOperator
java.lang.Object
org.datanucleus.store.query.expression.Expression.Operator
org.datanucleus.store.query.expression.Expression.MonadicOperator
- All Implemented Interfaces:
Serializable
- Enclosing class:
Expression
"Monadic" operator performs a function on one operand.
It can be in either postfix or prefix notation.
- Prefix notation meaning the operator appears before its operand. operator operand
- Postfix notation meaning the operator appears after its operand. operand operator
- See Also:
-
Field Summary
FieldsFields inherited from class org.datanucleus.store.query.expression.Expression.Operator
precedence, symbol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this operator has higher precedence thanop
Methods inherited from class org.datanucleus.store.query.expression.Expression.Operator
toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MonadicOperator
Monodiac operator- Parameters:
symbol
- the source text or symbol of an operator. e.g =, ==, +, /, >, <, etcprecedence
- the order of precedence where the expression is compiled
-
-
Method Details
-
isHigherThan
Check if this operator has higher precedence thanop
- Parameters:
op
- the operator- Returns:
- true if this operation is higher
-