MCPcopy Create free account
hub / github.com/mozilla/rhino / name

Method name

rhino/src/main/java/org/mozilla/javascript/Token.java:256–261  ·  view source on GitHub ↗

Returns a name for the token. If Rhino is compiled with certain hardcoded debugging flags in this file, it calls #typeToName; otherwise it returns a string whose value is the token number.

(int token)

Source from the content-addressed store, hash-verified

254 * token number.
255 */
256 public static String name(int token) {
257 if (!printNames) {
258 return String.valueOf(token);
259 }
260 return typeToName(token);
261 }
262
263 /**
264 * Always returns a human-readable string for the token name. For instance, {@link #FINALLY} has

Callers 3

toStringMethod · 0.95
tokenToStringMethod · 0.95
bytecodeNameMethod · 0.95

Calls 2

typeToNameMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected