Package net.sourceforge.plantuml.evalex
Class Expression.Operator
- java.lang.Object
-
- net.sourceforge.plantuml.evalex.AbstractLazyOperator
-
- net.sourceforge.plantuml.evalex.AbstractOperator
-
- net.sourceforge.plantuml.evalex.Expression.Operator
-
- All Implemented Interfaces:
LazyOperator
,Operator
- Enclosing class:
- Expression
public abstract class Expression.Operator extends AbstractOperator
Abstract definition of a supported operator. An operator is defined by its name (pattern), precedence and if it is left- or right associative.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.plantuml.evalex.AbstractLazyOperator
booleanOperator, leftAssoc, oper, precedence
-
-
Method Summary
-
Methods inherited from class net.sourceforge.plantuml.evalex.AbstractOperator
eval
-
Methods inherited from class net.sourceforge.plantuml.evalex.AbstractLazyOperator
getOper, getPrecedence, isBooleanOperator, isLeftAssoc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.plantuml.evalex.LazyOperator
getOper, getPrecedence, isBooleanOperator, isLeftAssoc
-
-
-
-
Constructor Detail
-
Operator
public Operator(java.lang.String oper, int precedence, boolean leftAssoc, boolean booleanOperator)
Creates a new operator.- Parameters:
oper
- The operator name (pattern).precedence
- The operators precedence.leftAssoc
-true
if the operator is left associative, elsefalse
.booleanOperator
- Whether this operator is boolean.
-
Operator
public Operator(java.lang.String oper, int precedence, boolean leftAssoc)
Creates a new operator.- Parameters:
oper
- The operator name (pattern).precedence
- The operators precedence.leftAssoc
-true
if the operator is left associative, elsefalse
.
-
-