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