ctx.getELResolver().setValue(ctx, null, this.image, value);
}
+ @SuppressWarnings("unchecked")
@Override
public Object invoke(EvaluationContext ctx, Class[] paramTypes,
Object[] paramValues) throws ELException {
}
+ @SuppressWarnings("unchecked")
@Override
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
throws ELException {
Class<?> targetClass = resolver.getType(ctx, t.base, t.property);
if (COERCE_TO_ZERO == true
|| !isAssignable(value, targetClass)) {
- value = ELSupport.coerceToType(value, targetClass);
+ resolver.setValue(ctx, t.base, t.property,
+ ELSupport.coerceToType(value, targetClass));
+ } else {
+ resolver.setValue(ctx, t.base, t.property, value);
}
- resolver.setValue(ctx, t.base, t.property, value);
}
private boolean isAssignable(Object value, Class<?> targetClass) {
}
+ @SuppressWarnings("unchecked")
@Override
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
throws ELException {
.getParameterTypes());
}
+ @SuppressWarnings("unchecked")
@Override
public Object invoke(EvaluationContext ctx, Class[] paramTypes,
Object[] paramValues) throws ELException {
}
public void jjtOpen() {
+ // NOOP by default
}
public void jjtClose() {
+ // NOOP by default
}
public void jjtSetParent(Node n) {
}
}
+ @SuppressWarnings("unchecked")
public Object invoke(EvaluationContext ctx, Class[] paramTypes,
Object[] paramValues) throws ELException {
throw new UnsupportedOperationException();
}
+ @SuppressWarnings("unchecked")
public MethodInfo getMethodInfo(EvaluationContext ctx,
Class[] paramTypes) throws ELException {
throw new UnsupportedOperationException();