public class IJ1MacroEngine extends AbstractScriptEngine
engineScopeBindings, scriptContext
ARGV, 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, setLogService
public IJ1MacroEngine(IJ1Helper ij1Helper)
ij1Helper
- the helper to evaluate the macrospublic static void saveInterpreter()
public Object eval(String macro) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
public Object eval(Reader reader) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
public void put(String key, Object value)
put
in interface ScriptEngine
put
in class AbstractScriptEngine
@Deprecated public static void setOutput(String key, String value)
Copyright © 2014–2022 ImageJ. All rights reserved.