Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/macro/Interpreter.html
Дата изменения: Thu Dec 2 23:03:10 2010 Дата индексирования: Mon Oct 1 22:12:54 2012 Кодировка: Поисковые слова: m 2 |
|
||||||||||
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 | |
---|---|
static boolean |
batchMode
|
static int |
FAST_TRACE
|
static int |
NONE
|
static int |
RUN
|
static int |
RUN_TO_CARET
|
static int |
STEP
|
static int |
TRACE
|
Constructor Summary | |
---|---|
Interpreter()
|
Method Summary | |
---|---|
static void |
abort()
Aborts currently running macro. |
static void |
abort(Interpreter interp)
Absolete, replaced by abortMacro(). |
void |
abortMacro()
Aborts this macro. |
static void |
addBatchModeImage(ImagePlus imp)
|
boolean |
done()
|
static java.lang.String |
getAdditionalFunctions()
|
static ImagePlus |
getBatchModeImage(int id)
|
static int |
getBatchModeImageCount()
|
static int[] |
getBatchModeImageIDs()
|
static RoiManager |
getBatchModeRoiManager()
Returns the batch mode RoiManager instance. |
Editor |
getEditor()
|
static Interpreter |
getInstance()
|
static ImagePlus |
getLastBatchModeImage()
|
int |
getLineNumber()
|
java.lang.String |
getStringVariable(java.lang.String name)
|
double |
getVariable(java.lang.String name)
|
java.lang.String[] |
getVariables()
|
static boolean |
isBatchMode()
|
static boolean |
isBatchModeRoiManager()
Returns true if there is an internal batch mode RoiManager. |
static void |
removeBatchModeImage(ImagePlus imp)
|
void |
run(int location)
Runs an existing macro starting at the specified program counter location. |
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 variables. |
static void |
setAdditionalFunctions(java.lang.String functions)
The specified string, if not null, is added to strings passed to the run() method. |
void |
setDebugMode(int mode)
|
void |
setEditor(Editor ed)
|
void |
setVariable(java.lang.String name,
double value)
|
TextWindow |
updateDebugWindow(java.lang.String[] variables,
TextWindow debugWindow)
|
boolean |
wasError()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int STEP
public static final int TRACE
public static final int FAST_TRACE
public static final int RUN
public static final int RUN_TO_CARET
public static boolean batchMode
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 run(int location)
public void runMacro(Program pgm, int macroLoc, java.lang.String macroName)
public void saveGlobals(Program pgm)
public TextWindow updateDebugWindow(java.lang.String[] variables, TextWindow debugWindow)
public static void abort()
public static void abort(Interpreter interp)
public void abortMacro()
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()
public static RoiManager getBatchModeRoiManager()
public static boolean isBatchModeRoiManager()
public void setEditor(Editor ed)
public void setDebugMode(int mode)
public int getLineNumber()
public java.lang.String[] getVariables()
public boolean done()
public Editor getEditor()
public boolean wasError()
public void setVariable(java.lang.String name, double value)
public double getVariable(java.lang.String name)
public java.lang.String getStringVariable(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |