public interface ExpressionEvaluator
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Object leftOperand,
String operator,
Object rightOperand)
Evaluates this expression.
|
Class |
getLeftType()
Returns the type which is expected for left operand.
|
Collection<String> |
getSupportedOperators()
Returns a Collection of supported Operators.
|
Collection<Class> |
getSupportedRightTypes(String operator)
Returns a Collection of types which are supported as right Operand.
|
boolean |
isSupported(Class leftType,
String operator,
Class rightType)
Returns true when type of left and right operand and the passed operator is supported.
|
Class getLeftType()
Collection<Class> getSupportedRightTypes(String operator)
operator - the operator which shall be appliedCollection<String> getSupportedOperators()
boolean isSupported(Class leftType, String operator, Class rightType)
leftType - type of left operandoperator - the operatorrightType - type of right operandboolean evaluate(Object leftOperand, String operator, Object rightOperand)
ExpressionEvaluationException is
thrown. Returns true when expression evaluates to true, returns false otherwise.leftOperand - value for left operandoperator - operatorrightOperand - value for right operandCopyright © 2017 SAP SE. All Rights Reserved.