Returns the token type for the specified keyword text. Only matches keywords, not symbols. @param text the keyword text (e.g., "def", "if", "class") @return the keyword type constant, or #UNKNOWN if not a recognized keyword
(String text)
| 1318 | * @return the keyword type constant, or {@link #UNKNOWN} if not a recognized keyword |
| 1319 | */ |
| 1320 | public static int lookupKeyword(String text) { |
| 1321 | return lookup(text, KEYWORD); |
| 1322 | } |
| 1323 | |
| 1324 | |
| 1325 | /** |