Class for the dummy top-level function of a module.
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);
}
apply1
public Object apply1(ModuleMethod method,
Object arg1)
throws Throwable
apply2
public Object apply2(ModuleMethod method,
Object arg1,
Object arg2)
throws Throwable
apply3
public Object apply3(ModuleMethod method,
Object arg1,
Object arg2,
Object arg3)
throws Throwable
apply4
public Object apply4(ModuleMethod method,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
throws Throwable
applyN
public Object applyN(ModuleMethod method,
Object[] args)
throws Throwable
getMainPrintValues
public static boolean getMainPrintValues()
True if runAsMain should print values (in top-level expressions).
processArgs
public static void processArgs(String[] args)
This is invoked by main when ModuleBody is compiled with --main.
runAsMain
public final void runAsMain()
This is invoked by main when ModuleBody is compiled with --main.
setMainPrintValues
public static void setMainPrintValues(boolean value)