java.lang.Object
ij.plugin.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".
-
Constructor Summary
Constructors Constructor Description JavaScriptEvaluator()
-
Method Summary
-
Constructor Details
-
JavaScriptEvaluator
public JavaScriptEvaluator()
-
-
Method Details
-
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. -
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 interfacejava.lang.Runnable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-