| java.lang.Object org.apache.batik.script.InterpreterPool
InterpreterPool | public class InterpreterPool (Code) | | A class allowing to create/query an
org.apache.batik.script.Interpreter corresponding to a particular
Document and scripting language.
By default, it is able to create interpreters for ECMAScript,
Python and Tcl scripting languages if you provide the right jar
files in your CLASSPATH (i.e. Rhino, JPython and Jacl jar
files).
author: Christophe Jolif version: $Id: InterpreterPool.java 482913 2006-12-06 05:57:52Z cam $ |
Constructor Summary | |
public | InterpreterPool() Constructs a new InterpreterPool. |
BIND_NAME_DOCUMENT | final public static String BIND_NAME_DOCUMENT(Code) | | Name of the "document" object when referenced by scripts
|
defaultFactories | protected static Map defaultFactories(Code) | | The default InterpreterFactory map.
|
factories | protected Map factories(Code) | | The InterpreterFactory map.
|
InterpreterPool | public InterpreterPool()(Code) | | Constructs a new InterpreterPool.
|
createInterpreter | public Interpreter createInterpreter(Document document, String language)(Code) | | Creates a new interpreter for the specified document and
according to the specified language. This method can return
null if no interpreter has been found for the specified
language.
Parameters: document - the document that needs the interpreter Parameters: language - the scripting language |
putInterpreterFactory | public void putInterpreterFactory(String language, InterpreterFactory factory)(Code) | | Adds for the specified language, the specified Interpreter factory.
Parameters: language - the language for which the factory is registered Parameters: factory - the InterpreterFactory to register |
removeInterpreterFactory | public void removeInterpreterFactory(String language)(Code) | | Removes the InterpreterFactory associated to the specified language.
Parameters: language - the language for which the factory should be removed. |
|
|