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

Method getFunctionType

ij/src/main/java/ij/macro/Symbol.java:18–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 int getFunctionType() {
19 int t = 0;
20 if (type>=300 && type<1000)
21 t = PREDEFINED_FUNCTION;
22 else if (type>=1000 && type<2000)
23 t = NUMERIC_FUNCTION;
24 else if (type>=2000 && type<3000)
25 t = STRING_FUNCTION;
26 else if (type>=3000 && type<4000)
27 t = ARRAY_FUNCTION;
28 else if (type>=4000 && type<5000)
29 t = VARIABLE_FUNCTION;
30 return t;
31 }
32
33 public String toString() {
34 return type+" "+value+" "+str;

Callers 1

addTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected