public MethodAccessor(Method method, ExecutableStatement[] parms) { setMethod(method); this.parms = parms; }
public DynamicFieldAccessor(Field field) { setField(field); }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (this.nextNode == null) { return processWith(ctx, elCtx, variableFactory); } else { return this.nextNode.getValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory); } }
public Accessor optimizeCollection(ParserContext pCtx, Object o, Class type, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory) { this.returnType = type; this.ctx = ctx; this.variableFactory = factory; this.pCtx = pCtx; Accessor root = _getAccessor(o, returnType); if (property != null && property.length > 0) { return new Union(root, property); } else { return root; } }
private Object executeOverrideTarget(Method o, Object ctx, Object elCtx, VariableResolverFactory vars) { try { return nullHandle(o.getName(), o.invoke(ctx, EMPTY), ctx, elCtx, vars); } catch (Exception e2) { throw new RuntimeException("unable to invoke method", e2); } }
private Class getWithProperty(Class ctx) { String root = new String(expr, 0, cursor - 1).trim(); int start = cursor + 1; cursor = balancedCaptureWithLineAccounting(expr, cursor, end, '{', pCtx); new WithAccessor(pCtx, root, expr, start, cursor++ - start, ctx); return ctx; }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (this.nextNode == null) { return processWith(ctx, elCtx, variableFactory); } else { return this.nextNode.getValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory); } }
public Accessor optimizeCollection(ParserContext pCtx, Object o, Class type, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory) { this.start = this.cursor = start; this.length = start + offset; this.returnType = type; this.ctx = ctx; this.variableFactory = factory; this.pCtx = pCtx; Accessor root = _getAccessor(o, returnType); if (property != null && length > start) { return new Union(pCtx, root, property, cursor, offset); } else { return root; } }
public MethodAccessor(Method method, ExecutableStatement[] parms) { setMethod(method); this.parms = parms; }
public DynamicFieldAccessor(Field field) { setField(field); }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (this.nextNode == null) { return processWith(ctx, elCtx, variableFactory); } else { return this.nextNode.getValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory); } }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return nextAccessor.setValue(get(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return this.nextNode.setValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return nextAccessor.setValue(get(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return this.nextNode.setValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return nextAccessor.setValue(get(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) { return this.nextNode.setValue(processWith(ctx, elCtx, variableFactory), elCtx, variableFactory, value); }