| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure gnu.mapping.ProcedureN gnu.mapping.MethodProc gnu.expr.ModuleMethod
ModuleMethod | public class ModuleMethod extends MethodProc (Code) | | Call a specified method in in a ModuleBody.
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.
|
Method Summary | |
public void | apply(CallContext ctx) | public Object | apply0() | public static Object | apply0Default(ModuleMethod method) | public Object | apply1(Object arg1) | public static Object | apply1Default(ModuleMethod method, Object arg1) | public Object | apply2(Object arg1, Object arg2) | public static Object | apply2Default(ModuleMethod method, Object arg1, Object arg2) | public Object | apply3(Object arg1, Object arg2, Object arg3) | public static Object | apply3Default(ModuleMethod method, Object arg1, Object arg2, Object arg3) | public Object | apply4(Object arg1, Object arg2, Object arg3, Object arg4) | public static Object | apply4Default(ModuleMethod method, Object arg1, Object arg2, Object arg3, Object arg4) | public static void | applyError() Helper methods for default ModuleBody actions. | public Object | applyN(Object[] args) | public static Object | applyNDefault(ModuleMethod method, Object[] args) | public int | match0(CallContext ctx) | public int | match1(Object arg1, CallContext ctx) | public int | match2(Object arg1, Object arg2, CallContext ctx) | public int | match3(Object arg1, Object arg2, Object arg3, CallContext ctx) | public int | match4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx) | public int | matchN(Object[] args, CallContext ctx) | public int | numArgs() | protected void | resolveParameterTypes() Figure out parameter types.
Uses reflection to get method parameter types.
INCOMPLETE - does not handle procedures with optional or rest args. |
numArgs | protected int numArgs(Code) | | |
selector | final public int selector(Code) | | |
applyError | public static void applyError()(Code) | | Helper methods for default ModuleBody actions.
|
numArgs | public int numArgs()(Code) | | |
resolveParameterTypes | protected void resolveParameterTypes()(Code) | | Figure out parameter types.
Uses reflection to get method parameter types.
INCOMPLETE - does not handle procedures with optional or rest args.
|
Methods inherited from gnu.mapping.Procedure | public void apply(CallContext ctx) throws Throwable(Code)(Java Doc) public static void apply(Procedure proc, CallContext 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 void check0(CallContext ctx)(Code)(Java Doc) public void check1(Object arg1, CallContext ctx)(Code)(Java Doc) public void check2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public void check3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public void check4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public void checkN(Object[] args, CallContext ctx)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) public String getSourceLocation()(Code)(Java Doc) public int match0(CallContext ctx)(Code)(Java Doc) public int match1(Object arg1, CallContext ctx)(Code)(Java Doc) public int match2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public int match3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public int match4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public int matchN(Object[] args, CallContext ctx)(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) public int numArgs()(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) public void setSetter(Procedure setter)(Code)(Java Doc) public void setSourceLocation(String file, int line)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|