public class BeanMapExpressionEvaluator extends MVELExpressionEvaluator implements ExecutionContextExpressionEvaluator
ExecutionContext via the BeanContext.
Cab be used to selectively target resources based on the
contents of the java objects bound to the supplied ExecutionContext
via the BeanContext.
The special EC variable gives access to the EditingContext.ExpressionEvaluator.Factory| Modifier and Type | Field and Description |
|---|---|
static String |
MVEL_EXECUTION_CONTEXT_KEY |
| Constructor and Description |
|---|
BeanMapExpressionEvaluator() |
BeanMapExpressionEvaluator(String expression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval(ExecutionContext context)
Evaluate an expression based on the supplied
ExecutionContext. |
Object |
getValue(ExecutionContext context)
Evaluate an expression based on the supplied
ExecutionContext
and return the value. |
eval, exec, exec, getCompiled, getExpression, getValue, setExpression, setToType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteval, getExpression, getValue, setExpressionpublic static final String MVEL_EXECUTION_CONTEXT_KEY
public BeanMapExpressionEvaluator()
public BeanMapExpressionEvaluator(String expression) throws SmooksConfigurationException
SmooksConfigurationExceptionpublic boolean eval(ExecutionContext context) throws ExpressionEvaluationException
ExecutionContextExpressionEvaluatorExecutionContext.eval in interface ExecutionContextExpressionEvaluatorcontext - The context.ExpressionEvaluationException - Invalid expression evaluation (implementation specific).public Object getValue(ExecutionContext context) throws ExpressionEvaluationException
ExecutionContextExpressionEvaluatorExecutionContext
and return the value.getValue in interface ExecutionContextExpressionEvaluatorcontext - The context.ExpressionEvaluationException - Invalid expression evaluation (implementation specific).Copyright © 2020. All rights reserved.