public static class Expression.MonadicOperator extends Expression.Operator
precedence, symbol
Constructor and Description |
---|
MonadicOperator(String symbol,
int precedence)
Monodiac operator
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHigherThan(Expression.Operator op)
Check if this operator has higher precedence than
op |
toString
public MonadicOperator(String symbol, int precedence)
symbol
- the source text or symbol of an operator. e.g =, ==, +, /, >, <, etcprecedence
- the order of precedence where the expression is compiledpublic boolean isHigherThan(Expression.Operator op)
op
op
- the operatorCopyright © 2019. All rights reserved.