public static boolean isTrait ( final ClassNode cNode ) { return cNode != null && ( ( cNode . isInterface ( ) && ! cNode . getAnnotations ( TRAIT_CLASSNODE ) . isEmpty ( ) ) || isAnnotatedWithTrait ( cNode ) ) ; }
Returns true if the specified class node is a trait .