public class ConditionOperator<T> extends SOperator<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ANY |
static String |
KEY_ELSE |
static String |
KEY_EQUALS |
static String |
KEY_THEN |
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 |
|---|
ConditionOperator()
constructor
|
ConditionOperator(Map<CharSequence,T> values)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected IConverter<CharSequence,T> |
createConverter() |
protected void |
createOperations()
define all possible operations. see
Operator.operationDefs. should set value for Operator.KEY_OPERATION in
Operator.syntax, too! |
T |
eval(CharSequence expression)
eval
|
protected BooleanOperator |
getOp() |
protected CharSequence |
precalc(CharSequence expression)
may do some pre calculations. override this method to do them.
|
concat, createSyntax, createTermSyntax_NEW_ALTERNIVE13062015, createTermSyntax, extract, replace, subElement, subEnclosing, trim, unwrap, wrapaddOperation, addValue, encloseInBrackets, eval, getValue, getValues, newOperand, operate, reset, resultEstablished, syntax, toStringpublic static final String KEY_THEN
public static final String KEY_ELSE
public static final String KEY_EQUALS
public static final String KEY_ANY
public ConditionOperator()
public ConditionOperator(Map<CharSequence,T> values)
inputClass - converter - values - protected BooleanOperator getOp()
protected IConverter<CharSequence,T> createConverter()
protected void createOperations()
OperatorOperator.operationDefs. should set value for Operator.KEY_OPERATION in
Operator.syntax, too!createOperations in class Operator<CharSequence,T>public T eval(CharSequence expression)
Operatoreval in class Operator<CharSequence,T>protected CharSequence precalc(CharSequence expression)
expression - expression to be preparedCopyright © 2012–2022. All rights reserved.