MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getVariable

Method getVariable

ij/src/main/java/ij/macro/Interpreter.java:2407–2415  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

2405 }
2406
2407 public double getVariable(String name) {
2408 int index;
2409 for (int i=0; i<=topOfStack; i++) {
2410 index = stack[i].symTabIndex;
2411 if (pgm.table[index].str.equals(name))
2412 return stack[i].getValue();
2413 }
2414 return Double.NaN;
2415 }
2416
2417 public double getVariable2(String name) {
2418 int index;

Callers 4

applyMacroMethod · 0.95
applyMacroMethod · 0.95
parseArgumentListMethod · 0.45
fMethod · 0.45

Calls 2

equalsMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected