public class ScriptCompiler extends Object
Constructor and Description |
---|
ScriptCompiler(String language,
ClassLoader classLoader)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Evaluatable |
compileScript(Reader reader)
Do the work.
|
Invocable |
getInvocable()
The Invocable that result from the last compilation if the
engine supports it.
|
public ScriptCompiler(String language, ClassLoader classLoader)
language
- The language. Default to JavaScript.public Evaluatable compileScript(Reader reader)
public Invocable getInvocable()