|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.mapping.Procedure gnu.mapping.Procedure0 gnu.expr.ModuleBody
public abstract class ModuleBody
Class for the dummy top-level function of a module.
Field Summary | |
---|---|
protected boolean |
runDone
|
Constructor Summary | |
---|---|
ModuleBody()
|
Method Summary | |
---|---|
void |
apply(CallContext ctx)
Call this Procedure using the explicit-CallContext-convention. |
java.lang.Object |
apply0()
|
java.lang.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); } |
java.lang.Object |
apply1(ModuleMethod method,
java.lang.Object arg1)
|
java.lang.Object |
apply2(ModuleMethod method,
java.lang.Object arg1,
java.lang.Object arg2)
|
java.lang.Object |
apply3(ModuleMethod method,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
java.lang.Object |
apply4(ModuleMethod method,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
|
java.lang.Object |
applyN(ModuleMethod method,
java.lang.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,
java.lang.Object arg1,
CallContext ctx)
|
int |
match2(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
CallContext ctx)
|
int |
match3(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
CallContext ctx)
|
int |
match4(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
CallContext ctx)
|
int |
matchN(ModuleMethod proc,
java.lang.Object[] args,
CallContext ctx)
|
static void |
processArgs(java.lang.String[] args)
This is invoked by main when ModuleBody is compiled with --main. |
void |
run()
|
void |
run(CallContext ctx)
|
void |
run(Consumer out)
|
void |
runAsMain()
This is invoked by main when ModuleBody is compiled with --main. |
void |
runAsMain(java.lang.String[] args)
Deprecated. |
static void |
runCleanup(CallContext ctx,
java.lang.Throwable th,
Consumer save)
|
static void |
setMainPrintValues(boolean value)
|
Methods inherited from class gnu.mapping.Procedure0 |
---|
apply1, apply2, apply3, apply4, applyN, numArgs |
Methods inherited from class gnu.mapping.Procedure |
---|
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean runDone
Constructor Detail |
---|
public ModuleBody()
Method Detail |
---|
public void apply(CallContext ctx) throws java.lang.Throwable
Procedure
apply
in class Procedure
java.lang.Throwable
public void run(CallContext ctx) throws java.lang.Throwable
java.lang.Throwable
public void run()
public void run(Consumer out)
public static void runCleanup(CallContext ctx, java.lang.Throwable th, Consumer save)
public java.lang.Object apply0() throws java.lang.Throwable
apply0
in class Procedure0
java.lang.Throwable
public static boolean getMainPrintValues()
public static void setMainPrintValues(boolean value)
public final void runAsMain(java.lang.String[] args)
public static void processArgs(java.lang.String[] args)
public final void runAsMain()
public java.lang.Object apply0(ModuleMethod method) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply1(ModuleMethod method, java.lang.Object arg1) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply2(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply3(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply4(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object applyN(ModuleMethod method, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public int match0(ModuleMethod proc, CallContext ctx)
public int match1(ModuleMethod proc, java.lang.Object arg1, CallContext ctx)
public int match2(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, CallContext ctx)
public int match3(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, CallContext ctx)
public int match4(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, CallContext ctx)
public int matchN(ModuleMethod proc, java.lang.Object[] args, CallContext ctx)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |