@Override public void notifyAfterEvaluation(String expr) { this.elContext.notifyAfterEvaluation(expr); }
@Override public Class<?> getType(ELContext context) { context.notifyBeforeEvaluation(getExpressionString()); Class<?> result = (this.value != null) ? this.value.getClass() : null; context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Class<?> getType(ELContext context) { context.notifyBeforeEvaluation(getExpressionString()); Class<?> result = (this.value != null) ? this.value.getClass() : null; context.notifyAfterEvaluation(getExpressionString()); return result; }
/** * @since EL 2.2 */ public ValueReference getValueReference(ELContext context) { // Expected to be over-ridden by implementation context.notifyBeforeEvaluation(getExpressionString()); context.notifyAfterEvaluation(getExpressionString()); return null; } }
@Override public boolean isReadOnly(ELContext context) { context.notifyBeforeEvaluation(getExpressionString()); context.notifyAfterEvaluation(getExpressionString()); return true; }
@Override public MethodInfo getMethodInfo(ELContext context) throws ELException { context.notifyBeforeEvaluation(getExpressionString()); MethodInfo result = new MethodInfo(this.expr, this.expectedType, this.paramTypes); context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Object getValue(ELContext context) { context.notifyBeforeEvaluation(getExpressionString()); Object result; if (this.expectedType != null) { result = context.convertToType(this.value, this.expectedType); } else { result = this.value; } context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Object getValue(ELContext context) { context.notifyBeforeEvaluation(getExpressionString()); Object result; if (this.expectedType != null) { result = context.convertToType(this.value, this.expectedType); } else { result = this.value; } context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public MethodInfo getMethodInfo(ELContext context) throws ELException { context.notifyBeforeEvaluation(getExpressionString()); MethodInfo result = new MethodInfo(this.expr, this.expectedType, this.paramTypes); context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Object invoke(ELContext context, Object[] params) throws ELException { context.notifyBeforeEvaluation(getExpressionString()); Object result; if (this.expectedType != null) { result = context.convertToType(this.expr, this.expectedType); } else { result = this.expr; } context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Object invoke(ELContext context, Object[] params) throws ELException { context.notifyBeforeEvaluation(getExpressionString()); Object result; if (this.expectedType != null) { result = context.convertToType(this.expr, this.expectedType); } else { result = this.expr; } context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Class<?> getType(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); Class<?> result = this.getNode().getType(ctx); context.notifyAfterEvaluation(getExpressionString()); return result; }
@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()); }
@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()); }
@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; }
@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; }
/** * @since EL 2.2 */ @Override public ValueReference getValueReference(ELContext context) { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); ValueReference result = this.getNode().getValueReference(ctx); context.notifyAfterEvaluation(getExpressionString()); return result; } }
@Override public Class<?> getType(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); Class<?> result = this.getNode().getType(ctx); context.notifyAfterEvaluation(getExpressionString()); return result; }
@Override public Object getValue(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); Object value = this.getNode().getValue(ctx); if (this.expectedType != null) { value = context.convertToType(value, this.expectedType); } context.notifyAfterEvaluation(getExpressionString()); return value; }
@Override public Object getValue(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); context.notifyBeforeEvaluation(getExpressionString()); Object value = this.getNode().getValue(ctx); if (this.expectedType != null) { value = context.convertToType(value, this.expectedType); } context.notifyAfterEvaluation(getExpressionString()); return value; }