Package org.apache.batik.script
Interface InterpreterFactory
- All Known Implementing Classes:
RhinoInterpreterFactory
public interface InterpreterFactory
An interface for factory objects than can create
Interpreter
instances for a particular script language.-
Method Summary
Modifier and TypeMethodDescriptioncreateInterpreter
(URL documentURL, boolean svg12) This method should create an instance ofInterpreter
interface implementation.createInterpreter
(URL documentURL, boolean svg12, ImportInfo imports) This method should create an instance ofInterpreter
interface implementation.String[]
Returns the mime-types to register this interpereter with.
-
Method Details
-
getMimeTypes
String[] getMimeTypes()Returns the mime-types to register this interpereter with. -
createInterpreter
This method should create an instance ofInterpreter
interface implementation.- Parameters:
documentURL
- the url for the document which will be scriptedsvg12
- whether the document is an SVG 1.2 documentimports
- The set of classes/packages to import (if the interpreter supports that), may be null.
-
createInterpreter
This method should create an instance ofInterpreter
interface implementation.- Parameters:
documentURL
- the url for the document which will be scriptedsvg12
- whether the document is an SVG 1.2 document
-