public class NumericConditionOperator extends ConditionOperator<Object>
BigDecimal.
This implementation disables type generics of super classes. uses Function to calculate inside functions
before.KEY_ANY, KEY_ELSE, KEY_EQUALS, KEY_THENKEY_BEGIN, KEY_BETWEEN, KEY_CONCAT, KEY_EMPTY, KEY_END, KEY_HIGH_OPERATION, KEY_OPERAND, KEY_OPERATION, KEY_RESULT, KEY_TERM, KEY_TERM_ENCLOSED| Constructor and Description |
|---|
NumericConditionOperator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createOperations()
define all possible operations. see
Operator.operationDefs. should set value for Operator.KEY_OPERATION in
Operator.syntax, too! |
BigDecimal |
eval(CharSequence expression,
Map<CharSequence,Object> v)
delegates to
Operator.eval(Object) filling the given values to Operator.values. |
protected CharSequence |
precalc(CharSequence expression)
calculate functions
|
createConverter, eval, getOpconcat, createSyntax, createTermSyntax_NEW_ALTERNIVE13062015, createTermSyntax, extract, replace, subElement, subEnclosing, trim, unwrap, wrapaddOperation, addValue, encloseInBrackets, getValue, getValues, newOperand, operate, reset, resultEstablished, syntax, toStringprotected CharSequence precalc(CharSequence expression)
precalc in class ConditionOperator<Object>expression - expression to be preparedpublic BigDecimal eval(CharSequence expression, Map<CharSequence,Object> v)
OperatorOperator.eval(Object) filling the given values to Operator.values.eval in class Operator<CharSequence,Object>protected void createOperations()
OperatorOperator.operationDefs. should set value for Operator.KEY_OPERATION in
Operator.syntax, too!createOperations in class ConditionOperator<Object>Copyright © 2012–2022. All rights reserved.