Search in sources :

Example 6 with EvaluationContext

use of org.apache.el.lang.EvaluationContext in project tomcat by apache.

the class ValueExpressionImpl method setValue.

/*
     * (non-Javadoc)
     *
     * @see javax.el.ValueExpression#setValue(javax.el.ELContext,
     *      java.lang.Object)
     */
@Override
public void setValue(ELContext context, Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper);
    context.notifyBeforeEvaluation(getExpressionString());
    this.getNode().setValue(ctx, value);
    context.notifyAfterEvaluation(getExpressionString());
}
Also used : EvaluationContext(org.apache.el.lang.EvaluationContext)

Example 7 with EvaluationContext

use of org.apache.el.lang.EvaluationContext in project tomcat by apache.

the class ValueExpressionImpl method isReadOnly.

/*
     * (non-Javadoc)
     *
     * @see javax.el.ValueExpression#isReadOnly(javax.el.ELContext)
     */
@Override
public boolean isReadOnly(ELContext context) throws PropertyNotFoundException, ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper);
    context.notifyBeforeEvaluation(getExpressionString());
    boolean result = this.getNode().isReadOnly(ctx);
    context.notifyAfterEvaluation(getExpressionString());
    return result;
}
Also used : EvaluationContext(org.apache.el.lang.EvaluationContext)

Aggregations

EvaluationContext (org.apache.el.lang.EvaluationContext)7 MethodInfo (javax.el.MethodInfo)1 ValueReference (javax.el.ValueReference)1 Node (org.apache.el.parser.Node)1