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)
| 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. |
no test coverage detected