MCPcopy Index your code
hub / github.com/apache/groovy / getText

Method getText

src/main/java/org/codehaus/groovy/syntax/Types.java:1344–1352  ·  view source on GitHub ↗

Returns the text representation for the specified token type. For symbols and keywords, this is the canonical text (e.g., "def", "+", "->"). @param type a token type constant from this class @return the text representation, or empty string if the type has no text mapping

(int type)

Source from the content-addressed store, hash-verified

1342 * @return the text representation, or empty string if the type has no text mapping
1343 */
1344 public static String getText(int type) {
1345 String text = "";
1346
1347 if (TEXTS.containsKey(type)) {
1348 text = TEXTS.get(type);
1349 }
1350
1351 return text;
1352 }
1353
1354
1355 /**

Callers 1

newSymbolMethod · 0.95

Calls 2

containsKeyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected