Returns a human-readable description of the specified token type. Useful for error messages and debugging. For example, PLUS might return "+". @param type the token type constant @return a description string, or "<>" if the type has no description
(int type)
| 1534 | * @return a description string, or {@code "<>"} if the type has no description |
| 1535 | */ |
| 1536 | public static String getDescription(int type) { |
| 1537 | if (DESCRIPTIONS.containsKey(type)) { |
| 1538 | return DESCRIPTIONS.get(type); |
| 1539 | } |
| 1540 | |
| 1541 | return "<>"; |
| 1542 | } |
| 1543 | |
| 1544 | |
| 1545 | /** |
no test coverage detected