Interface InterpreterFactory

All Known Implementing Classes:
JPythonInterpreterFactory, RhinoInterpreterFactory

public interface InterpreterFactory
An interface for factory objects than can create Interpreter instances for a particular script language.
  • Method Summary

    Modifier and Type
    Method
    Description
    createInterpreter(URL documentURL, boolean svg12)
    This method should create an instance of Interpreter interface implementation.
    createInterpreter(URL documentURL, boolean svg12, ImportInfo imports)
    This method should create an instance of Interpreter interface implementation.
    Returns the mime-types to register this interpereter with.
  • Method Details

    • getMimeTypes

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

      Interpreter createInterpreter(URL documentURL, boolean svg12, ImportInfo imports)
      This method should create an instance of Interpreter interface implementation.
      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.
    • createInterpreter

      Interpreter createInterpreter(URL documentURL, boolean svg12)
      This method should create an instance of Interpreter interface implementation.
      Parameters:
      documentURL - the url for the document which will be scripted
      svg12 - whether the document is an SVG 1.2 document