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