Module ij
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 text editor's Macros/Run command, and the IJ.runMacroFile() method, when the file name ends with ".js".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String eval​(java.lang.String script)  
      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)
      • eval

        public java.lang.String eval​(java.lang.String script)
      • run

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

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