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

Method isInterface

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

Returns whether this ClassNode represents an interface type. A class is an interface if the ACC_INTERFACE modifier flag is set in its modifiers. Interfaces define contracts for implementing classes without providing implementation details. Note that annotations are also interfaces (w

()

Source from the content-addressed store, hash-verified

1867 * @see #getModifiers()
1868 */
1869 public boolean isInterface() {
1870 return (getModifiers() & ACC_INTERFACE) != 0;
1871 }
1872
1873 /**
1874 * Returns whether this {@link ClassNode} represents an annotation type (annotation definition).

Callers 15

checkGenericsUsageMethod · 0.95
generateMopCallsMethod · 0.95
getMopMethodNameMethod · 0.95
writeDirectMethodCallMethod · 0.95
callSuperDefaultMethod · 0.95
writeClosureMethod · 0.95
findGetAtMethod · 0.95

Calls 1

getModifiersMethod · 0.95

Tested by

no test coverage detected