public class NumericOperator extends SOperator<BigDecimal>
Operator. Is able to do math operations on decimals (including
currency symbols). Override createOperations() to have more operation definitions.KEY_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 |
|---|
NumericOperator()
constructor
|
NumericOperator(Map<CharSequence,BigDecimal> values)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static IConverter<CharSequence,BigDecimal> |
createConverter() |
protected void |
createOperations()
define all possible operations. see
Operator.operationDefs |
concat, createSyntax, createTermSyntax_NEW_ALTERNIVE13062015, createTermSyntax, extract, replace, subElement, subEnclosing, trim, unwrap, wrapaddOperation, addValue, encloseInBrackets, eval, eval, getValue, getValues, newOperand, operate, reset, resultEstablished, syntax, toStringpublic NumericOperator()
public NumericOperator(Map<CharSequence,BigDecimal> values)
values - protected static IConverter<CharSequence,BigDecimal> createConverter()
protected void createOperations()
Operator.operationDefscreateOperations in class Operator<CharSequence,BigDecimal>Copyright © 2012–2022. All rights reserved.