protected static final Collection toCollection(Object base) { return toCollection(base, true); }
protected static final Collection toCollection(Object base) { return toCollection(base, true); }
protected static final Collection toCollection(Object base) { return toCollection(base, true); }
public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return true; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.isReadOnly(first, ctx); } }
public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return true; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.isReadOnly(first, ctx); } }
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.getMethodInfo(first, ctx, paramTypes); } }
public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return true; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.isReadOnly(first, ctx); } }
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.getMethodInfo(first, ctx, paramTypes); } }
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { AstClosure closure = this.closure(); Object first = c.iterator().next(); return closure.getMethodInfo(first, ctx, paramTypes); } }
public void setValue(Object base, EvaluationContext ctx, Object value) throws ELException { Collection c = this.toCollection(base); if (c != null && !c.isEmpty()) { AstClosure closure = this.closure(); for (Object o : c) { closure.setValue(o, ctx, value); } } }
public void setValue(Object base, EvaluationContext ctx, Object value) throws ELException { Collection c = this.toCollection(base); if (c != null && !c.isEmpty()) { AstClosure closure = this.closure(); for (Object o : c) { closure.setValue(o, ctx, value); } } }
public void setValue(Object base, EvaluationContext ctx, Object value) throws ELException { Collection c = this.toCollection(base); if (c != null && !c.isEmpty()) { AstClosure closure = this.closure(); for (Object o : c) { closure.setValue(o, ctx, value); } } }
public Object getValue(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null) { return null; } else if (c.isEmpty()) { return Collections.EMPTY_LIST; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.getValue(o, ctx); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object getTarget(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.getValue(o, ctx); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object getTarget(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.getValue(o, ctx); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object getTarget(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null || c.isEmpty()) { return null; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.getValue(o, ctx); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object invoke(Object base, EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { Collection c = this.toCollection(base); if (c == null) { return null; } else if (c.isEmpty()) { return Collections.EMPTY_LIST; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.invoke(o, ctx, paramTypes, paramValues); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object invoke(Object base, EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { Collection c = this.toCollection(base); if (c == null) { return null; } else if (c.isEmpty()) { return Collections.EMPTY_LIST; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.invoke(o, ctx, paramTypes, paramValues); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object invoke(Object base, EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { Collection c = this.toCollection(base); if (c == null) { return null; } else if (c.isEmpty()) { return Collections.EMPTY_LIST; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.invoke(o, ctx, paramTypes, paramValues); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }
public Object getValue(Object base, EvaluationContext ctx) throws ELException { Collection c = this.toCollection(base); if (c == null) { return null; } else if (c.isEmpty()) { return Collections.EMPTY_LIST; } else { Object v; Collection r = new ClosureList(c.size()); AstClosure closure = this.closure(); for (Object o : c) { v = closure.getValue(o, ctx); if (v instanceof ClosureList) { r.addAll((ClosureList) v); } else { r.add(v); } } return r; } }