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

Method getVariable

ij/src/main/java/ij/macro/Functions.java:651–665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

649 }
650
651 final Variable getVariable() {
652 interp.getToken();
653 if (interp.token!=WORD)
654 interp.error("Variable expected");
655 Variable v = interp.lookupLocalVariable(interp.tokenAddress);
656 if (v==null)
657 v = interp.push(interp.tokenAddress, 0.0, null, interp);
658 Variable[] array = v.getArray();
659 if (array!=null) {
660 int index = interp.getIndex();
661 checkIndex(index, 0, v.getArraySize()-1);
662 v = array[index];
663 }
664 return v;
665 }
666
667 final Variable getFirstArrayVariable() {
668 interp.getLeftParen();

Callers 10

getVariableArgMethod · 0.95
getFirstVariableMethod · 0.95
getNextVariableMethod · 0.95
getLastVariableMethod · 0.95
getStatisticsMethod · 0.95
getStackStatisticsMethod · 0.95
getEquationMethod · 0.95
getArrayStatisticsMethod · 0.95
toScaledMethod · 0.95
toUnscaledMethod · 0.95

Calls 8

getArrayMethod · 0.95
checkIndexMethod · 0.95
getArraySizeMethod · 0.95
lookupLocalVariableMethod · 0.80
getTokenMethod · 0.45
errorMethod · 0.45
pushMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected