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

Method undefined

ij/src/main/java/ij/macro/Interpreter.java:2051–2066  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2049 }
2050
2051 void undefined() {
2052 if (nextToken()=='(')
2053 error("Undefined identifier");
2054 else {
2055 if (pgm.getSize()==1) {
2056 String cmd = pgm.decodeToken(pgm.code[0]);
2057 cmd = cmd.replaceAll("_", " ");
2058 Hashtable commands = Menus.getCommands();
2059 if (commands!=null && commands.get(cmd)!=null)
2060 IJ.run(cmd);
2061 else
2062 error("Undefined variable");
2063 } else
2064 error("Undefined variable");
2065 }
2066 }
2067
2068 void dump() {
2069 getParens();

Callers 2

lookupVariableMethod · 0.95
lookupStringVariableMethod · 0.95

Calls 8

nextTokenMethod · 0.95
errorMethod · 0.95
getCommandsMethod · 0.95
runMethod · 0.95
decodeTokenMethod · 0.80
replaceAllMethod · 0.80
getSizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected