MCPcopy Create free account
hub / github.com/apache/groovy / isEnum

Method isEnum

src/main/java/org/codehaus/groovy/ast/ClassNode.java:1896–1898  ·  view source on GitHub ↗

Returns whether this ClassNode represents an enumeration type. An enum class has the ACC_ENUM modifier flag set in its modifiers. Enumerations define a fixed set of named constants that can be iterated over at compile time. @return true if this class is an enumeration; {@cod

()

Source from the content-addressed store, hash-verified

1894 * @see #setModifiers(int)
1895 */
1896 public boolean isEnum() {
1897 return (getModifiers() & ACC_ENUM) != 0;
1898 }
1899
1900 /**
1901 * Checks if the {@link ClassNode} instance represents a native {@code record}.

Calls 1

getModifiersMethod · 0.95

Tested by

no test coverage detected