FileDocCategorySizeDatePackage
Compilable.javaAPI DocJava SE 6 API1793Tue Jun 10 00:26:26 BST 2008javax.script

Compilable

public interface Compilable
The optional interface implemented by ScriptEngines whose methods compile scripts to a form that can be executed repeatedly without recompilation.
author
Mike Grogan
version
1.0
since
1.6

Fields Summary
Constructors Summary
Methods Summary
public javax.script.CompiledScriptcompile(java.lang.String script)
Compiles the script (source represented as a String) for later execution.

param
script The source of the script, represented as a String.
return
An subclass of CompiledScript to be executed later using one of the eval methods of CompiledScript.
throws
ScriptException if compilation fails.
throws
NullPointerException if the argument is null.

public javax.script.CompiledScriptcompile(java.io.Reader script)
Compiles the script (source read from Reader) for later execution. Functionality is identical to compile(String) other than the way in which the source is passed.

param
script The reader from which the script source is obtained.
return
An implementation of CompiledScript to be executed later using one of its eval methods of CompiledScript.
throws
ScriptException if compilation fails.
throws
NullPointerException if argument is null.