Module ij
Package ij.plugin

Class PlugInInterpreter

java.lang.Object
ij.plugin.PlugInInterpreter
All Implemented Interfaces:
PlugIn

public abstract class PlugInInterpreter
extends java.lang.Object
implements PlugIn
Plugins that run scripts (e.g., BeanShell, Jython) extend this class.
  • Constructor Summary

    Constructors 
    Constructor Description
    PlugInInterpreter()  
  • Method Summary

    Modifier and Type Method Description
    abstract java.lang.String getImports()
    Returns the import statements that are added to the script.
    abstract java.lang.String getName()
    Returns the name of this PlugInInterpreter.
    abstract java.lang.String getReturnValue()
    Returns the value returned by the script, if any, or null.
    abstract java.lang.String getVersion()
    Returns the version of ImageJ at the time this plugin was created.
    void run​(java.lang.String script)
    Run script on separate thread.
    abstract java.lang.String run​(java.lang.String script, java.lang.String arg)
    Run script on current thread.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      public void run​(java.lang.String script)
      Run script on separate thread.
      Specified by:
      run in interface PlugIn
    • run

      public abstract java.lang.String run​(java.lang.String script, java.lang.String arg)
      Run script on current thread.
    • getReturnValue

      public abstract java.lang.String getReturnValue()
      Returns the value returned by the script, if any, or null.
    • getName

      public abstract java.lang.String getName()
      Returns the name of this PlugInInterpreter.
    • getImports

      public abstract java.lang.String getImports()
      Returns the import statements that are added to the script.
    • getVersion

      public abstract java.lang.String getVersion()
      Returns the version of ImageJ at the time this plugin was created.