public class IJ1MacroEngine extends org.scijava.script.AbstractScriptEngine
engineScopeBindings, scriptContextARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Constructor and Description |
|---|
IJ1MacroEngine(IJ1Helper ij1Helper)
Constructs an ImageJ 1.x macro engine.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(Reader reader) |
Object |
eval(String macro) |
void |
put(String key,
Object value) |
static void |
saveInterpreter()
Called by ImageJ 1.x at the beginning of each macro execution.
|
static void |
setOutput(String key,
String value)
Deprecated.
Macros no longer call this method. Nor should you.
|
createBindings, eval, eval, eval, eval, get, getBindings, getContext, getFactory, log, setBindings, setContext, setLogServicepublic IJ1MacroEngine(IJ1Helper ij1Helper)
ij1Helper - the helper to evaluate the macrospublic static void saveInterpreter()
public Object eval(String macro) throws ScriptException
eval in interface ScriptEngineeval in class org.scijava.script.AbstractScriptEngineScriptExceptionpublic Object eval(Reader reader) throws ScriptException
eval in interface ScriptEngineeval in class org.scijava.script.AbstractScriptEngineScriptExceptionpublic void put(String key, Object value)
put in interface ScriptEngineput in class org.scijava.script.AbstractScriptEngine@Deprecated public static void setOutput(String key, String value)
Copyright © 2009–2025 ImageJ. All rights reserved.