Package org.apache.batik.script
Interface InterpreterFactory
-
- All Known Implementing Classes:
JaclInterpreterFactory
,JPythonInterpreterFactory
,RhinoInterpreterFactory
public interface InterpreterFactory
An interface for factory objects than can createInterpreter
instances for a particular script language.- Version:
- $Id: InterpreterFactory.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Interpreter
createInterpreter(java.net.URL documentURL, boolean svg12)
This method should create an instance ofInterpreter
interface implementation.Interpreter
createInterpreter(java.net.URL documentURL, boolean svg12, ImportInfo imports)
This method should create an instance ofInterpreter
interface implementation.java.lang.String[]
getMimeTypes()
Returns the mime-types to register this interpereter with.
-
-
-
Method Detail
-
getMimeTypes
java.lang.String[] getMimeTypes()
Returns the mime-types to register this interpereter with.
-
createInterpreter
Interpreter createInterpreter(java.net.URL documentURL, boolean svg12, ImportInfo imports)
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
Interpreter createInterpreter(java.net.URL documentURL, boolean svg12)
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
-
-