Package ij.plugin

Class JavaScriptEvaluator

  • All Implemented Interfaces:
    PlugIn, java.lang.Runnable

    public class JavaScriptEvaluator
    extends java.lang.Object
    implements PlugIn, java.lang.Runnable
    Implements the macro editor's Macros/Evaluate JavaScript command on systems running Java 1.6 or later. The JavaScript plugin at is used to evaluate JavaScript on systems running versions of Java earlier than 1.6.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void run​(java.lang.String script)
      This method is called when the plugin is loaded.
      java.lang.String run​(java.lang.String script, java.lang.String arg)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JavaScriptEvaluator

        public JavaScriptEvaluator()
    • Method Detail

      • run

        public void run​(java.lang.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 java.lang.String run​(java.lang.String script,
                                    java.lang.String arg)
      • run

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object