org.oddjob.script
Class ScriptCompiler

java.lang.Object
  extended by org.oddjob.script.ScriptCompiler

public class ScriptCompiler
extends Object

This class is used to run Compile scripts.


Constructor Summary
ScriptCompiler(String language, ClassLoader classLoader)
          Constructor.
 
Method Summary
 Evaluatable compileScript(Reader reader)
          Do the work.
 Invocable getInvocable()
          The Invocable that result from the last compilation if the engine supports it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptCompiler

public ScriptCompiler(String language,
                      ClassLoader classLoader)
Constructor.

Parameters:
language - The language. Default to JavaScript.
Method Detail

compileScript

public Evaluatable compileScript(Reader reader)
Do the work.


getInvocable

public Invocable getInvocable()
The Invocable that result from the last compilation if the engine supports it. Null otherwise.

Returns:
An Invocable or null.