API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.util.optional. JavaxScriptRunner View Source
Author(s)
Since
Ant 1.7.0
Version
Serial
Hierarchy
 Object
      ScriptRunnerBase
          JavaxScriptRunner
Implements
Subclasses
Description
public class JavaxScriptRunner
  This class is used to run scripts using JSR 223.
See also:   
Constructors
public JavaxScriptRunner ()
Methods
Hide/Show inherited methods
public void addBean (java.lang.String key, java.lang.Object bean) [Inherited From ScriptRunnerBase]
  Add a single object into the script context.
public void addBeans (java.util.Map dictionary) [Inherited From ScriptRunnerBase]
  Add a list of named objects to the list to be exported to the script
public void addText (java.lang.String text) [Inherited From ScriptRunnerBase]
  Set the script text.
public void bindToComponent (ProjectComponent component) [Inherited From ScriptRunnerBase]
  Bind the runner to a project component.
public void bindToComponentMinimum (ProjectComponent component) [Inherited From ScriptRunnerBase]
  Bind the runner to a project component.
protected void checkLanguage () [Inherited From ScriptRunnerBase]
  Check if the language attribute is set.
public void clearScript () [Inherited From ScriptRunnerBase]
Clear the current script text content.
public java.lang.Object evaluateScript (java.lang.String execName) throws BuildException [Specified in ScriptRunnerBase]
  Do the work to eval the script.
public void executeScript (java.lang.String execName) throws BuildException [Specified in ScriptRunnerBase]
  Do the work to run the script.
protected java.util.Map getBeans () [Inherited From ScriptRunnerBase]
  Get the beans used for the script.
public boolean getKeepEngine () [Inherited From ScriptRunnerBase]
  Get the keep engine attribute.
public java.lang.String getLanguage () [Inherited From ScriptRunnerBase]
  Get the script language
public java.lang.String getManagerName () [Specified in ScriptRunnerBase]
  Get the name of the manager prefix.
public Project getProject () [Inherited From ScriptRunnerBase]
  Get the project for this runner.
public java.lang.String getScript () [Inherited From ScriptRunnerBase]
  Get the current script text content.
protected java.lang.ClassLoader getScriptClassLoader () [Inherited From ScriptRunnerBase]
  Get the classloader used to load the script engine.
public void loadResource (Resource sourceResource) [Inherited From ScriptRunnerBase]
  Add a resource to the source list.
public void loadResources (ResourceCollection collection) [Inherited From ScriptRunnerBase]
  Add all resources in a resource collection to the source list.
protected java.lang.ClassLoader replaceContextLoader () [Inherited From ScriptRunnerBase]
  Replace the current context classloader with the script context classloader.
protected void restoreContextLoader (java.lang.ClassLoader origLoader) [Inherited From ScriptRunnerBase]
  Restore the context loader with the original context classloader.
public void setKeepEngine (boolean keepEngine) [Inherited From ScriptRunnerBase]
  Whether to keep the script engine between calls.
public void setLanguage (java.lang.String language) [Inherited From ScriptRunnerBase]
  Defines the language (required).
public void setProject (Project project) [Inherited From ScriptRunnerBase]
  Set the project for this runner.
public void setScriptClassLoader (java.lang.ClassLoader classLoader) [Inherited From ScriptRunnerBase]
  Set the script classloader.
public void setSrc (java.io.File file) [Inherited From ScriptRunnerBase]
  Load the script from an external file; optional.
public boolean supportsLanguage () [Specified in ScriptRunnerBase]
Check if a script engine can be created for this language..
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar