Package ij.plugin

Class JavaScriptEvaluator

java.lang.Object
ij.plugin.JavaScriptEvaluator
All Implemented Interfaces:
PlugIn, Runnable

public class JavaScriptEvaluator extends Object implements PlugIn, Runnable
Implements the macro editor's Macros/Evaluate JavaScript command on systems running Java 1.6 or later. The JavaScript plugin at <http://rsb.info.nih.gov/ij/plugins/download/misc/JavaScript.java> is used to evaluate JavaScript on systems running versions of Java earlier than 1.6.
  • Constructor Details

    • JavaScriptEvaluator

      public JavaScriptEvaluator()
  • Method Details

    • run

      public void run(String script)
      Description copied from interface: PlugIn
      This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
      Specified by:
      run in interface PlugIn
    • run

      public String run(String script, String arg)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • toString

      public String toString()
      Overrides:
      toString in class Object