|
||||||||||
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(Reader reader)
Compiles the script (source is read from the Reader) for later execution. |
CompiledScript |
compile(String script)
Compiles the script (sourced from the String) for later execution. |
Method Detail |
---|
CompiledScript compile(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
NullPointerException
- if script is nullCompiledScript compile(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
NullPointerException
- if reader is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |