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