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 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 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; } }
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 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; } }