Package gnu.expr
Class CompiledModule
- java.lang.Object
-
- gnu.expr.CompiledModule
-
public class CompiledModule extends Object
Representation of an interactive module after parsing and compiling. Also useful for loading a compiled class file.
-
-
Constructor Summary
Constructors Constructor Description CompiledModule(ModuleExp mexp, Object cookie, Language language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evalModule(Environment env, gnu.kawa.io.OutPort out)
void
evalModule(Environment env, CallContext ctx)
Evaluate this compile, sending output toctx.consumer
.Object
evalToResultValue(Environment env, CallContext ctx)
Evaluate this compile, yielding a result value.static CompiledModule
make(Class clas, Language language)
-
-
-
Method Detail
-
make
public static CompiledModule make(Class clas, Language language)
-
evalModule
public void evalModule(Environment env, CallContext ctx) throws Throwable
Evaluate this compile, sending output toctx.consumer
.- Throws:
Throwable
-
evalModule
public void evalModule(Environment env, gnu.kawa.io.OutPort out) throws Throwable
- Throws:
Throwable
-
evalToResultValue
public Object evalToResultValue(Environment env, CallContext ctx) throws Throwable
Evaluate this compile, yielding a result value.- Throws:
Throwable
-
-