public Enumeration getChildrenInfo() { if (nrNeededParams >= 0) { return Utils.arrayEnumeration(Utils.arrayConcat(new Object[] {funcOrVal}, getBoundParams())); } else { return Utils.oneEnumeration(funcOrVal); } }
/** Either evaluate or apply with arguments. Choice is made here. */ protected final Object evalOrApplyN(Object[] vn) { return getOrigFunction().evalOrApplyN(Utils.arrayConcat(getAllBoundParams(), vn)); }
protected Object[] getAllBoundParams() { if (funcOrVal instanceof Function) return getBoundParams(); else return Utils.arrayConcat(((Apply) funcOrVal).getAllBoundParams(), getBoundParams()); }