Class JavaScriptEvaluator

java.lang.Object
  extended by JavaScriptEvaluator
All Implemented Interfaces:
PlugIn, Runnable

public class JavaScriptEvaluator
extends Object
implements PlugIn, Runnable

Implements the macro editor's Macros/Evaluate JavaScript command on Linux and Windows systems running Java 1.6 or later. This command is implemented as a separately compilable plugin so that the ImageJ core can continue to be compiled using Java 1.4 and Java 1.5. The JavaScript plugin at is used to evaluate JavaScript on Macs and on systems running versions of Java earlier than 1.6.


Constructor Summary
JavaScriptEvaluator()
           
 
Method Summary
 void run()
           
 void run(String script)
          This method is called when the plugin is loaded.
 String run(String script, String arg)
           
 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(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


Copyright © 1997-2013 NIH. All Rights Reserved.