Class DefaultExpressionEvaluator
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.dynamicforms.impl.DefaultExpressionEvaluator
-
- All Implemented Interfaces:
ExpressionEvaluator
public class DefaultExpressionEvaluator extends java.lang.Object implements ExpressionEvaluator
Default implementation ofExpressionEvaluatorwhich supportsScriptingLanguage.SP_EL
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description DefaultExpressionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TevaluateExpression(ScriptingLanguage scriptingLanguage, ScriptingType scriptingType, java.lang.String expression, java.lang.Object target)Evaluates expression on target object using passed scripting languagevoidsetObjectValueService(ObjectValueService objectValueService)
-
-
-
Method Detail
-
evaluateExpression
public <T> T evaluateExpression(ScriptingLanguage scriptingLanguage, ScriptingType scriptingType, java.lang.String expression, java.lang.Object target)
Description copied from interface:ExpressionEvaluatorEvaluates expression on target object using passed scripting language- Specified by:
evaluateExpressionin interfaceExpressionEvaluator- Type Parameters:
T- type of returned value- Parameters:
scriptingLanguage- scripting languagescriptingType- scriptingTypeexpression- expression to evaluatetarget- object on which expression should be evaluated- Returns:
- evaluated value
-
setObjectValueService
public void setObjectValueService(ObjectValueService objectValueService)
-
-