File: PlugInInterpreter.java

package info (click to toggle)
imagej 1.52j-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,604 kB
  • sloc: java: 120,017; sh: 279; xml: 161; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package ij.plugin;

/** Plugins that run scripts (e.g., BeanShell, Jython) extend this class. */
public abstract class PlugInInterpreter implements PlugIn {

	/** Run script on separate thread. */
	public void run(String script) {
	}
	
	/** Run script on current thread. */
	public abstract String run(String script, String arg);
	
	/** Returns the value returned by the script, if any, or null. */
	public abstract String getReturnValue();

	/** Returns the name of this PlugInInterpreter. */
	public abstract String getName();

	/** Returns the import statements that are added to the script. */
	public abstract String getImports();
	
	/** Returns the version of ImageJ at the time this plugin was created. */
	public abstract String getVersion();

}