org.apache.batik.script.jpython
Class JPythonInterpreterFactory

java.lang.Object
  extended by org.apache.batik.script.jpython.JPythonInterpreterFactory
All Implemented Interfaces:
InterpreterFactory

public class JPythonInterpreterFactory
extends Object
implements InterpreterFactory

Allows to create instances of JPythonInterpreter class.

Version:
$Id: JPythonInterpreterFactory.java 1733416 2016-03-03 07:07:13Z gadams $
Author:
Christophe Jolif

Field Summary
static String[] JPYTHON_MIMETYPES
          The MIME types that JPython can handle.
 
Constructor Summary
JPythonInterpreterFactory()
          Builds a JPythonInterpreterFactory.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JPYTHON_MIMETYPES

public static final String[] JPYTHON_MIMETYPES
The MIME types that JPython can handle.

Constructor Detail

JPythonInterpreterFactory

public JPythonInterpreterFactory()
Builds a JPythonInterpreterFactory.

Method Detail

getMimeTypes

public String[] getMimeTypes()
Returns the mime-types to register this interpereter with.

Specified by:
getMimeTypes in interface InterpreterFactory

createInterpreter

public Interpreter createInterpreter(URL documentURL,
                                     boolean svg12)
Creates an instance of JPythonInterpreter class.

Specified by:
createInterpreter in interface InterpreterFactory
Parameters:
documentURL - the url for the document which will be scripted
svg12 - whether the document is an SVG 1.2 document

createInterpreter

public Interpreter createInterpreter(URL documentURL,
                                     boolean svg12,
                                     ImportInfo imports)
Creates an instance of JPythonInterpreter class.

Specified by:
createInterpreter in interface InterpreterFactory
Parameters:
documentURL - the url for the document which will be scripted
svg12 - whether the document is an SVG 1.2 document
imports - The set of classes/packages to import (if the interpreter supports that), may be null.


Copyright © 2000–2017 Apache Software Foundation. All rights reserved.