Package com.randomnoun.common.jessop
Class JessopCompiledScript
java.lang.Object
javax.script.CompiledScript
com.randomnoun.common.jessop.JessopCompiledScript
Container class for the target script generated by the JessopScriptBuilder from the jessop source.
If the implementation language supports compilation then this class also contains the compiled form of the generated script.
- Author:
- knoxg
-
Constructor Summary
ConstructorDescriptionJessopCompiledScript
(ScriptEngine engine, boolean isCompileTarget, String filename, String source, JessopExceptionConverter jec, JessopBindingsConverter jbc) -
Method Summary
Modifier and TypeMethodDescriptioneval
(ScriptContext context) Return the generated source; can be used for debugging.Methods inherited from class javax.script.CompiledScript
eval, eval
-
Constructor Details
-
JessopCompiledScript
public JessopCompiledScript(ScriptEngine engine, boolean isCompileTarget, String filename, String source, JessopExceptionConverter jec, JessopBindingsConverter jbc) throws ScriptException - Throws:
ScriptException
-
-
Method Details
-
eval
- Specified by:
eval
in classCompiledScript
- Throws:
ScriptException
-
getEngine
- Specified by:
getEngine
in classCompiledScript
-
getSource
Return the generated source; can be used for debugging.- Returns:
- the generated source
-