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)
| 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 | /** |
no test coverage detected