gnu.expr

Class ModuleWithContext

Implemented Interfaces:
Named

public abstract class ModuleWithContext
extends ModuleBody

Field Summary

Fields inherited from class gnu.expr.ModuleBody

runDone

Method Summary

Object
apply0(ModuleMethod method)
A subclass will typically override this like: switch (method.selector) { case 3: return function3(); case 5: return function5(); default: super.apply0(method); }
Object
apply1(ModuleMethod method, Object arg1)
Object
apply2(ModuleMethod method, Object arg1, Object arg2)
Object
apply3(ModuleMethod method, Object arg1, Object arg2, Object arg3)
Object
apply4(ModuleMethod method, Object arg1, Object arg2, Object arg3, Object arg4)
Object
applyN(ModuleMethod method, Object[] args)
int
match0(ModuleMethod proc, CallContext ctx)
int
match1(ModuleMethod proc, Object arg1, CallContext ctx)
int
match2(ModuleMethod proc, Object arg1, Object arg2, CallContext ctx)
int
match3(ModuleMethod proc, Object arg1, Object arg2, Object arg3, CallContext ctx)
int
match4(ModuleMethod proc, Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)
int
matchN(ModuleMethod proc, Object[] args, CallContext ctx)

Methods inherited from class gnu.expr.ModuleBody

apply, apply0, apply0, apply1, apply2, apply3, apply4, applyN, getMainPrintValues, match0, match1, match2, match3, match4, matchN, processArgs, run, run, run, runAsMain, runAsMain, runCleanup, setMainPrintValues

Methods inherited from class gnu.mapping.Procedure0

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Method Details

apply0

public Object apply0(ModuleMethod method)
            throws Throwable
A subclass will typically override this like: switch (method.selector) { case 3: return function3(); case 5: return function5(); default: super.apply0(method); }
Overrides:
apply0 in interface ModuleBody

apply1

public Object apply1(ModuleMethod method,
                     Object arg1)
            throws Throwable
Overrides:
apply1 in interface ModuleBody

apply2

public Object apply2(ModuleMethod method,
                     Object arg1,
                     Object arg2)
            throws Throwable
Overrides:
apply2 in interface ModuleBody

apply3

public Object apply3(ModuleMethod method,
                     Object arg1,
                     Object arg2,
                     Object arg3)
            throws Throwable
Overrides:
apply3 in interface ModuleBody

apply4

public Object apply4(ModuleMethod method,
                     Object arg1,
                     Object arg2,
                     Object arg3,
                     Object arg4)
            throws Throwable
Overrides:
apply4 in interface ModuleBody

applyN

public Object applyN(ModuleMethod method,
                     Object[] args)
            throws Throwable
Overrides:
applyN in interface ModuleBody

match0

public int match0(ModuleMethod proc,
                  CallContext ctx)
Overrides:
match0 in interface ModuleBody

match1

public int match1(ModuleMethod proc,
                  Object arg1,
                  CallContext ctx)
Overrides:
match1 in interface ModuleBody

match2

public int match2(ModuleMethod proc,
                  Object arg1,
                  Object arg2,
                  CallContext ctx)
Overrides:
match2 in interface ModuleBody

match3

public int match3(ModuleMethod proc,
                  Object arg1,
                  Object arg2,
                  Object arg3,
                  CallContext ctx)
Overrides:
match3 in interface ModuleBody

match4

public int match4(ModuleMethod proc,
                  Object arg1,
                  Object arg2,
                  Object arg3,
                  Object arg4,
                  CallContext ctx)
Overrides:
match4 in interface ModuleBody

matchN

public int matchN(ModuleMethod proc,
                  Object[] args,
                  CallContext ctx)
Overrides:
matchN in interface ModuleBody