|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.macro.Interpreter
public class Interpreter
This is the recursive descent parser/interpreter for the ImageJ macro language.
Field Summary |
---|
Constructor Summary | |
---|---|
Interpreter()
|
Method Summary | |
---|---|
static void |
abort()
Aborts currently running macro. |
static void |
addBatchModeImage(ImagePlus imp)
|
static java.lang.String |
getAdditionalFunctions()
|
static ImagePlus |
getBatchModeImage(int id)
|
static int |
getBatchModeImageCount()
|
static int[] |
getBatchModeImageIDs()
|
static Interpreter |
getInstance()
|
static ImagePlus |
getLastBatchModeImage()
|
static boolean |
isBatchMode()
|
static void |
removeBatchModeImage(ImagePlus imp)
|
void |
run(Program pgm)
Interprets the specified tokenized macro file starting at location 0. |
void |
run(java.lang.String macro)
Interprets the specified string. |
java.lang.String |
run(java.lang.String macro,
java.lang.String arg)
Runs the specified macro, passing it a string argument and returning a string value. |
void |
runMacro(Program pgm,
int macroLoc,
java.lang.String macroName)
Interprets the specified tokenized macro starting at the specified location. |
void |
saveGlobals(Program pgm)
Saves global variablesk. |
static void |
setAdditionalFunctions(java.lang.String functions)
The specified string, if not null, is added to strings passed to the run() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Interpreter()
Method Detail |
---|
public void run(java.lang.String macro)
public java.lang.String run(java.lang.String macro, java.lang.String arg)
public void run(Program pgm)
public void runMacro(Program pgm, int macroLoc, java.lang.String macroName)
public void saveGlobals(Program pgm)
public static void abort()
public static Interpreter getInstance()
public static boolean isBatchMode()
public static void addBatchModeImage(ImagePlus imp)
public static void removeBatchModeImage(ImagePlus imp)
public static int[] getBatchModeImageIDs()
public static int getBatchModeImageCount()
public static ImagePlus getBatchModeImage(int id)
public static ImagePlus getLastBatchModeImage()
public static void setAdditionalFunctions(java.lang.String functions)
public static java.lang.String getAdditionalFunctions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |