gnu.expr
public abstract class ModuleBody extends Procedure0
Field Summary | |
---|---|
protected boolean | runDone |
Method Summary | |
---|---|
void | apply(CallContext ctx) |
Object | apply0() |
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) |
static boolean | getMainPrintValues() True if runAsMain should print values (in top-level expressions). |
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) |
static void | processArgs(String[] args) This is invoked by main when ModuleBody is compiled with --main. |
void | run(CallContext ctx) |
void | run() |
void | run(Consumer out) |
void | runAsMain() This is invoked by main when ModuleBody is compiled with --main. |
static void | runCleanup(CallContext ctx, Throwable th, Consumer save) |
static void | setMainPrintValues(boolean value) |