public abstract class ModuleBody extends java.lang.Object implements RunnableModule
Modifier and Type | Field and Description |
---|---|
protected boolean |
runDone |
Constructor and Description |
---|
ModuleBody() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkRunDone(boolean value)
Check if run has been invoked.
|
static void |
exitDecrement()
Work around an AWT bug, where AWT threads are non-daemon.
|
static void |
exitIncrement()
See exitDecrement.
|
static boolean |
getMainPrintValues()
True if runAsMain should print values (in top-level expressions).
|
void |
run() |
void |
run(CallContext ctx) |
void |
run(Consumer out) |
static void |
run(RunnableModule mod,
Consumer out) |
void |
runAsMain()
This is invoked by main when ModuleBody is compiled with --main.
|
static void |
runAsMain(RunnableModule module)
This is invoked by main when ModuleBody is compiled with --main.
|
static void |
runCleanup(CallContext ctx,
java.lang.Throwable th,
Consumer save) |
static void |
runToVoid(RunnableModule mod) |
static void |
setMainPrintValues(boolean value) |
public boolean checkRunDone(boolean value)
RunnableModule
checkRunDone
in interface RunnableModule
value
- - should be true - probably pointless.public void run(CallContext ctx) throws java.lang.Throwable
run
in interface RunnableModule
java.lang.Throwable
public void run()
public static void runToVoid(RunnableModule mod)
public void run(Consumer out)
public static void run(RunnableModule mod, Consumer out)
public static void runCleanup(CallContext ctx, java.lang.Throwable th, Consumer save)
public static boolean getMainPrintValues()
public static void setMainPrintValues(boolean value)
public static void exitIncrement()
public static void exitDecrement()
public final void runAsMain()
public static void runAsMain(RunnableModule module)