protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params) { Collection args = _val.eval(candidates, orig, ctx, params); return new HashSet(args); }
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params) { Collection args = _val.eval(candidates, orig, ctx, params); return new HashSet(args); }
protected boolean eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object o = _val.eval(candidate, orig, ctx, params); return o != null && ((Boolean) o).booleanValue(); }
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params) { Collection args = _val.eval(candidates, orig, ctx, params); return new HashSet(args); }
protected boolean eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object o = _val.eval(candidate, orig, ctx, params); return o != null && ((Boolean) o).booleanValue(); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object str = _val.eval(candidate, orig, ctx, params); StringBuilder cat = new StringBuilder(str.toString()); Object arg = _args.eval(candidate, orig, ctx, params); if (arg instanceof Object[]) { for (int i = 0; i < ((Object[]) arg).length; i++) cat.append((((Object[]) arg)[i]).toString()); } else cat.append(arg.toString()); return cat.toString(); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object str = _val.eval(candidate, orig, ctx, params); StringBuilder cat = new StringBuilder(str.toString()); Object arg = _args.eval(candidate, orig, ctx, params); if (arg instanceof Object[]) { for (int i = 0; i < ((Object[]) arg).length; i++) cat.append((((Object[]) arg)[i]).toString()); } else cat.append(arg.toString()); return cat.toString(); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object[] vals = new Object[_args.size()]; for (int i = 0; i < _args.size(); i++) vals[i] = ((Val) _args.get(i)).eval(candidate, orig, ctx, params); return vals; }
protected boolean eval(Collection candidates, StoreContext ctx, Object[] params) { Collection c = _val.eval(candidates, null, ctx, params); Object o = (c == null || c.isEmpty()) ? null : c.iterator().next(); return o != null && ((Boolean) o).booleanValue(); }
/** * Return the possible values that variable can take. */ public Collection getVariableValues(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object values = _val.eval(candidate, orig, ctx, params); return getCollection(values); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { // evaluate with the value's value return super.eval(_val.eval(candidate, orig, ctx, params), orig, ctx, params); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { // evaluate with the value's value return super.eval(_val.eval(candidate, orig, ctx, params), orig, ctx, params); }
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params) { Collection args = _val.eval(candidates, orig, ctx, params); return Collections.singleton(operate(args, _val.getType())); }
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params) { Collection args = null; if (_arg != null) args = _arg.eval(candidates, orig, ctx, params); Object agg = _listener.evaluate(args, getArgTypes(), candidates, ctx); return Collections.singleton(agg); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object o1 = _val.eval(candidate, orig, ctx, params); return operate(o1, _val.getType()); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { Object o1 = _val.eval(candidate, orig, ctx, params); return operate(o1, _val.getType()); }