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

Method Program

ij/src/main/java/ij/macro/Program.java:26–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 Hashtable extensionRegistry;
25
26 public Program() {
27 if (systemTable!=null) {
28 if (systemTable.length>table.length)
29 enlargeSymbolTable();
30 stLoc = systemTable.length - 1;
31 for (int i=0; i<=stLoc; i++)
32 table[i] = systemTable[i];
33 } else {
34 addKeywords();
35 addFunctions();
36 addNumericFunctions();
37 addStringFunctions();
38 addArrayFunctions();
39 addVariableFunctions();
40 systemTable = new Symbol[stLoc+1];
41 for (int i=0; i<=stLoc; i++)
42 systemTable[i] = table[i];
43 }
44 if (IJ.debugMode) IJ.log("Symbol table: "+(stLoc+1)+" "+table.length+" "+systemTable.length);
45 }
46
47 public int[] getCode() {
48 return code;

Callers

nothing calls this directly

Calls 8

enlargeSymbolTableMethod · 0.95
addKeywordsMethod · 0.95
addFunctionsMethod · 0.95
addNumericFunctionsMethod · 0.95
addStringFunctionsMethod · 0.95
addArrayFunctionsMethod · 0.95
addVariableFunctionsMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected