| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure gnu.mapping.Procedure0 gnu.expr.ModuleBody
All known Subclasses: gnu.jemacs.buffer.Mode, gnu.expr.ModuleWithContext,
ModuleBody | abstract public class ModuleBody extends Procedure0 (Code) | | Class for the dummy top-level function of a module.
|
Field Summary | |
protected boolean | runDone |
Method Summary | |
public void | apply(CallContext ctx) | public Object | apply0() | public Object | apply0(ModuleMethod method) | public Object | apply1(ModuleMethod method, Object arg1) | public Object | apply2(ModuleMethod method, Object arg1, Object arg2) | public Object | apply3(ModuleMethod method, Object arg1, Object arg2, Object arg3) | public Object | apply4(ModuleMethod method, Object arg1, Object arg2, Object arg3, Object arg4) | public Object | applyN(ModuleMethod method, Object[] args) | public static boolean | getMainPrintValues() True if runAsMain should print values (in top-level expressions). | public int | match0(ModuleMethod proc, CallContext ctx) | public int | match1(ModuleMethod proc, Object arg1, CallContext ctx) | public int | match2(ModuleMethod proc, Object arg1, Object arg2, CallContext ctx) | public int | match3(ModuleMethod proc, Object arg1, Object arg2, Object arg3, CallContext ctx) | public int | match4(ModuleMethod proc, Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx) | public int | matchN(ModuleMethod proc, Object[] args, CallContext ctx) | public static void | processArgs(String[] args) This is invoked by main when ModuleBody is compiled with --main. | public void | run(CallContext ctx) | public void | run() | public void | run(Consumer out) | final public void | runAsMain() This is invoked by main when ModuleBody is compiled with --main. | public static void | runCleanup(CallContext ctx, Throwable th, Consumer save) | public static void | setMainPrintValues(boolean value) |
runDone | protected boolean runDone(Code) | | |
apply0 | public Object apply0(ModuleMethod method) throws Throwable(Code) | | A subclass will typically override this like:
switch (method.selector) {
case 3: return function3();
case 5: return function5();
default: super.apply0(method);
}
|
getMainPrintValues | public static boolean getMainPrintValues()(Code) | | True if runAsMain should print values (in top-level expressions).
|
processArgs | public static void processArgs(String[] args)(Code) | | This is invoked by main when ModuleBody is compiled with --main.
|
runAsMain | final public void runAsMain()(Code) | | This is invoked by main when ModuleBody is compiled with --main.
|
setMainPrintValues | public static void setMainPrintValues(boolean value)(Code) | | |
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)
|
|
|