public static boolean isUsingGenericsOrIsArrayUsingGenerics ( ClassNode cn ) { if ( cn . isArray ( ) ) { return isUsingGenericsOrIsArrayUsingGenerics ( cn . getComponentType ( ) ) ; } return ( cn . isUsingGenerics ( ) && cn . getGenericsTypes ( ) != null ) ; }
Returns true if a class node makes use of generic types . If the class node represents an array type then checks if the component type is using generics .