| java.lang.Object gnu.mapping.Procedure gnu.mapping.ProcedureN gnu.mapping.ApplyMethodProc
ApplyMethodProc | public class ApplyMethodProc extends ProcedureN (Code) | | Call a specified method in in a ApplyMethodContainer.
We use an extra level of indirection, but we save by having
to create fewer classes than in the one-class-per-procedure
scheme, without having to use (slow) reflection.
ApplyMethodProc is a generalization of expr.ModuleMethod.
|
Method Summary | |
public Object | apply0() | public static Object | apply0Default(ApplyMethodProc method) Helper methods for default ApplyMethodContainer actions. | public Object | apply1(Object arg1) | public static Object | apply1Default(ApplyMethodProc method, Object arg1) | public Object | apply2(Object arg1, Object arg2) | public static Object | apply2Default(ApplyMethodProc method, Object arg1, Object arg2) | public Object | apply3(Object arg1, Object arg2, Object arg3) | public static Object | apply3Default(ApplyMethodProc method, Object arg1, Object arg2, Object arg3) | public Object | apply4(Object arg1, Object arg2, Object arg3, Object arg4) | public static Object | apply4Default(ApplyMethodProc method, Object arg1, Object arg2, Object arg3, Object arg4) | public Object | applyN(Object[] args) | public static Object | applyNDefault(ApplyMethodProc method, Object[] args) | public int | numArgs() |
selector | final public int selector(Code) | | |
numArgs | public int numArgs()(Code) | | |
Methods inherited from gnu.mapping.Procedure | public void apply(Runnable ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public String getName()(Code)(Java Doc) public Object getProperty(Object key, Object defaultValue)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) final public String name()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public Object removeProperty(Object key)(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) final public void setName(String name)(Code)(Java Doc) public synchronized void setProperty(Object key, Object value)(Code)(Java Doc) public static Object[] setProperty(Object[] properties, Object key, Object value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|