public void setValue(Bindings bindings, ELContext context, Object value) { child.setValue(bindings, context, value); }
public void setValue(Bindings bindings, ELContext context, Object value) { child.setValue(bindings, context, value); }
@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)); } } }
@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)); } } }