@Override public void setValue(ExpressionState state, @Nullable Object newValue) throws EvaluationException { writeProperty(state.getActiveContextObject(), state.getEvaluationContext(), this.name, newValue); }
@Override public void setValue(ExpressionState state, @Nullable Object newValue) throws EvaluationException { writeProperty(state.getActiveContextObject(), state.getEvaluationContext(), this.name, newValue); }
if (isWritableProperty(this.name, contextObject, evalContext)) { List<?> newList = new ArrayList<>(); writeProperty(contextObject, evalContext, this.name, newList); result = readProperty(contextObject, evalContext, this.name); if (isWritableProperty(this.name,contextObject, evalContext)) { Map<?,?> newMap = new HashMap<>(); writeProperty(contextObject, evalContext, this.name, newMap); result = readProperty(contextObject, evalContext, this.name); Class<?> clazz = result.getTypeDescriptor().getType(); Object newObject = ReflectionUtils.accessibleConstructor(clazz).newInstance(); writeProperty(contextObject, evalContext, this.name, newObject); result = readProperty(contextObject, evalContext, this.name);
if (isWritableProperty(this.name, contextObject, evalContext)) { List<?> newList = new ArrayList<>(); writeProperty(contextObject, evalContext, this.name, newList); result = readProperty(contextObject, evalContext, this.name); if (isWritableProperty(this.name,contextObject, evalContext)) { Map<?,?> newMap = new HashMap<>(); writeProperty(contextObject, evalContext, this.name, newMap); result = readProperty(contextObject, evalContext, this.name); Class<?> clazz = result.getTypeDescriptor().getType(); Object newObject = ReflectionUtils.accessibleConstructor(clazz).newInstance(); writeProperty(contextObject, evalContext, this.name, newObject); result = readProperty(contextObject, evalContext, this.name);
@Override public void setValue(ExpressionState state, @Nullable Object newValue) throws EvaluationException { writeProperty(state.getActiveContextObject(), state.getEvaluationContext(), this.name, newValue); }
if (isWritableProperty(this.name, contextObject, evalContext)) { List<?> newList = new ArrayList<>(); writeProperty(contextObject, evalContext, this.name, newList); result = readProperty(contextObject, evalContext, this.name); if (isWritableProperty(this.name,contextObject, evalContext)) { Map<?,?> newMap = new HashMap<>(); writeProperty(contextObject, evalContext, this.name, newMap); result = readProperty(contextObject, evalContext, this.name); Class<?> clazz = result.getTypeDescriptor().getType(); Object newObject = ReflectionUtils.accessibleConstructor(clazz).newInstance(); writeProperty(contextObject, evalContext, this.name, newObject); result = readProperty(contextObject, evalContext, this.name);