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

Method isTrait

src/main/java/org/codehaus/groovy/transform/trait/Traits.java:342–344  ·  view source on GitHub ↗

Returns true if the specified class node is a trait. @param cNode a class node to test @return true if the classnode represents a trait

(final ClassNode cNode)

Source from the content-addressed store, hash-verified

340 * @return true if the classnode represents a trait
341 */
342 public static boolean isTrait(final ClassNode cNode) {
343 return cNode != null && isAnnotatedWithTrait(cNode);
344 }
345
346 /**
347 * Returns true if the specified class is a trait.

Callers 15

CacheKeyClass · 0.95
createSAMTransformMethod · 0.95
findTraitsMethod · 0.95
visitPropertyMethod · 0.95
printMethodMethod · 0.95
isInterfaceOrTraitMethod · 0.95
isDefaultTraitImplMethod · 0.95
checkGenericsUsageMethod · 0.95
canSeeTypeVarsMethod · 0.95
isOrImplementsTraitMethod · 0.95

Calls 2

isAnnotatedWithTraitMethod · 0.95
getAnnotationMethod · 0.80

Tested by

no test coverage detected