|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Compilable
Optional interface implemented by script engines which can compile scripts to a form that can be executed repeatedly.
See Javadoc of Java Scripting API
| Method Summary | |
|---|---|
CompiledScript |
compile(java.io.Reader reader)
Compiles the script (source is read from the Reader) for later execution. |
CompiledScript |
compile(java.lang.String script)
Compiles the script (sourced from the String) for later execution. |
| Method Detail |
|---|
CompiledScript compile(java.lang.String script)
throws ScriptException
script - the source of the script represented as String
CompiledScript to be executed later
using one of its eval() methods.
ScriptException - if the compilation fails for any reason
java.lang.NullPointerException - if script is null
CompiledScript compile(java.io.Reader reader)
throws ScriptException
reader - the reader from which the script source is obtained
CompiledScript to be executed later
using one of its eval() methods.
ScriptException - if the compilation fails for any reason
java.lang.NullPointerException - if reader is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||