Package org.apache.batik.script.jpython
Class JPythonInterpreterFactory
java.lang.Object
org.apache.batik.script.jpython.JPythonInterpreterFactory
- All Implemented Interfaces:
InterpreterFactory
Allows to create instances of
JPythonInterpreter class.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInterpreter(URL documentURL, boolean svg12) Creates an instance ofJPythonInterpreterclass.createInterpreter(URL documentURL, boolean svg12, ImportInfo imports) Creates an instance ofJPythonInterpreterclass.String[]Returns the mime-types to register this interpereter with.
-
Field Details
-
JPYTHON_MIMETYPES
The MIME types that JPython can handle.
-
-
Constructor Details
-
JPythonInterpreterFactory
public JPythonInterpreterFactory()Builds aJPythonInterpreterFactory.
-
-
Method Details
-
getMimeTypes
Returns the mime-types to register this interpereter with.- Specified by:
getMimeTypesin interfaceInterpreterFactory
-
createInterpreter
Creates an instance ofJPythonInterpreterclass.- Specified by:
createInterpreterin interfaceInterpreterFactory- Parameters:
documentURL- the url for the document which will be scriptedsvg12- whether the document is an SVG 1.2 document
-
createInterpreter
Creates an instance ofJPythonInterpreterclass.- Specified by:
createInterpreterin interfaceInterpreterFactory- 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.
-