コード例 #1
0
ファイル: Apply.java プロジェクト: phadej/uhc
 public Enumeration getChildrenInfo() {
   if (nrNeededParams >= 0) {
     return Utils.arrayEnumeration(Utils.arrayConcat(new Object[] {funcOrVal}, getBoundParams()));
   } else {
     return Utils.oneEnumeration(funcOrVal);
   }
 }
コード例 #2
0
ファイル: Apply.java プロジェクト: phadej/uhc
 /** Either evaluate or apply with arguments. Choice is made here. */
 protected final Object evalOrApplyN(Object[] vn) {
   return getOrigFunction().evalOrApplyN(Utils.arrayConcat(getAllBoundParams(), vn));
 }
コード例 #3
0
ファイル: Apply.java プロジェクト: phadej/uhc
 protected Object[] getAllBoundParams() {
   if (funcOrVal instanceof Function) return getBoundParams();
   else return Utils.arrayConcat(((Apply) funcOrVal).getAllBoundParams(), getBoundParams());
 }