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

Method lookupKeyword

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

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 1

newKeywordMethod · 0.95

Calls 1

lookupMethod · 0.95

Tested by

no test coverage detected