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 BSF scripts


Constructor Summary
ScriptCompiler()
           
 
Method Summary
 Evaluatable compileScript(Reader reader)
          Do the work.
 Invocable getInvocable()
           
 String getLanguage()
          Get the script language
 void setLanguage(String language)
          Defines the language (required).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptCompiler

public ScriptCompiler()
Method Detail

compileScript

public Evaluatable compileScript(Reader reader)
Do the work.

Throws:
BuildException - if someting goes wrong exectuing the script.

setLanguage

public void setLanguage(String language)
Defines the language (required).

Parameters:
language - the scripting language name for the script.

getLanguage

public String getLanguage()
Get the script language

Returns:
the script language

getInvocable

public Invocable getInvocable()