public class JPythonInterpreterFactory extends Object implements InterpreterFactory
JPythonInterpreter
class.Modifier and Type | Field and Description |
---|---|
static String[] |
JPYTHON_MIMETYPES
The MIME types that JPython can handle.
|
Constructor and Description |
---|
JPythonInterpreterFactory()
Builds a
JPythonInterpreterFactory . |
Modifier and Type | Method and Description |
---|---|
Interpreter |
createInterpreter(URL documentURL,
boolean svg12)
Creates an instance of
JPythonInterpreter class. |
Interpreter |
createInterpreter(URL documentURL,
boolean svg12,
ImportInfo imports)
Creates an instance of
JPythonInterpreter class. |
String[] |
getMimeTypes()
Returns the mime-types to register this interpereter with.
|
public static final String[] JPYTHON_MIMETYPES
public JPythonInterpreterFactory()
JPythonInterpreterFactory
.public String[] getMimeTypes()
getMimeTypes
in interface InterpreterFactory
public Interpreter createInterpreter(URL documentURL, boolean svg12)
JPythonInterpreter
class.createInterpreter
in interface InterpreterFactory
documentURL
- the url for the document which will be scriptedsvg12
- whether the document is an SVG 1.2 documentpublic Interpreter createInterpreter(URL documentURL, boolean svg12, ImportInfo imports)
JPythonInterpreter
class.createInterpreter
in interface InterpreterFactory
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.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.