@Override public Object eval(Bindings bindings, ELContext context) { return child.eval(bindings, context); }
public void setValue(Bindings bindings, ELContext context, Object value) { child.setValue(bindings, context, value); }
@Override public void appendStructure(StringBuilder b, Bindings bindings) { question.appendStructure(b, bindings); b.append(" ? "); yes.appendStructure(b, bindings); b.append(" : "); no.appendStructure(b, bindings); }
@Override public void setValue(Bindings bindings, ELContext context, Object value) throws ELException { if (!lvalue) { throw new ELException(LocalMessages.get("error.value.set.rvalue")); } Object base = null; try { base = prefix.eval(bindings, context); } catch (Exception e) { if (Debug.verboseOn()) { Debug.logVerbose(e, module); } } Object property = getProperty(bindings, context); if (property == null && strict) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base)); } if (base == null) { base = UelUtil.autoVivifyListOrMap(property); if (Debug.verboseOn()) { Debug.logVerbose("ExtendedAstBracket.setValue auto-vivify base: " + base + ", property = " + property, module); } prefix.setValue(bindings, context, base); } context.getELResolver().setValue(context, base, property, value); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base)); } } }
protected Method findAccessibleMethod(Method method) { Method result = findPublicAccessibleMethod(method); if (result == null && method != null && Modifier.isPublic(method.getModifiers())) { result = method; try { method.setAccessible(true); } catch (SecurityException e) { result = null; } } return result; } }
public MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes) { return child.getMethodInfo(bindings, context, returnType, paramTypes); }
public ValueReference getValueReference(Bindings bindings, ELContext context) { return child.getValueReference(bindings, context); }
public boolean isLeftValue() { return getChild(0).isLeftValue(); }
public Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) { return child.invoke(bindings, context, returnType, paramTypes, paramValues); }
public Class<?> getType(Bindings bindings, ELContext context) { return child.getType(bindings, context); }
@Override public void setValue(Bindings bindings, ELContext context, Object value) throws ELException { if (!lvalue) { throw new ELException(LocalMessages.get("error.value.set.rvalue")); } Object base = null; try { base = prefix.eval(bindings, context); } catch (Exception e) { if (Debug.verboseOn()) { Debug.logVerbose(e, module); } } Object property = getProperty(bindings, context); if (property == null && strict) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base)); } if (base == null) { base = UelUtil.autoVivifyListOrMap(property); if (Debug.verboseOn()) { Debug.logVerbose("ExtendedAstDot.setValue auto-vivify base: " + base + ", property = " + property, module); } prefix.setValue(bindings, context, base); } context.getELResolver().setValue(context, base, property, value); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base)); } } }
protected Method findAccessibleMethod(Method method) { Method result = findPublicAccessibleMethod(method); if (result == null && method != null && Modifier.isPublic(method.getModifiers())) { result = method; try { method.setAccessible(true); } catch (SecurityException e) { result = null; } } return result; } }
public MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes) { return child.getMethodInfo(bindings, context, returnType, paramTypes); }
public ValueReference getValueReference(Bindings bindings, ELContext context) { return child.getValueReference(bindings, context); }
public boolean isLeftValue() { return getChild(0).isLeftValue(); }
public Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) { return child.invoke(bindings, context, returnType, paramTypes, paramValues); }
public Class<?> getType(Bindings bindings, ELContext context) { return child.getType(bindings, context); }
@Override protected Object getProperty(Bindings bindings, ELContext context) throws ELException { return property.eval(bindings, context); }
@Override public void appendStructure(StringBuilder b, Bindings bindings) { question.appendStructure(b, bindings); b.append(" ? "); yes.appendStructure(b, bindings); b.append(" : "); no.appendStructure(b, bindings); }
public void setValue(Bindings bindings, ELContext context, Object value) { child.setValue(bindings, context, value); }