Class Classes


  • public class Classes
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jboss.jandex.DotName ARRAY_LIST  
      static org.jboss.jandex.DotName COLLECTION  
      static org.jboss.jandex.DotName DEQUE  
      static org.jboss.jandex.DotName ERROR_OR  
      static org.jboss.jandex.DotName HASH_MAP  
      static org.jboss.jandex.DotName HASH_SET  
      static org.jboss.jandex.DotName HASHTABLE  
      static org.jboss.jandex.DotName LINKED_LIST  
      static org.jboss.jandex.DotName LIST  
      static org.jboss.jandex.DotName MAP  
      static org.jboss.jandex.DotName OBJECT  
      static org.jboss.jandex.DotName OPTIONAL  
      static org.jboss.jandex.DotName QUEUE  
      static org.jboss.jandex.DotName SET  
      static org.jboss.jandex.DotName SORTED_MAP  
      static org.jboss.jandex.DotName SORTED_SET  
      static org.jboss.jandex.DotName STACK  
      static org.jboss.jandex.DotName TREE_MAP  
      static org.jboss.jandex.DotName TREE_SET  
      static org.jboss.jandex.DotName TYPESAFE_RESPONSE  
      static org.jboss.jandex.DotName VECTOR  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isArray​(org.jboss.jandex.Type type)
      Return true if this is an array
      static boolean isAsync​(org.jboss.jandex.Type type)  
      static boolean isClass​(org.jboss.jandex.Type type)  
      static boolean isCollection​(org.jboss.jandex.Type type)
      Return true if type is java Collection type which is handled as GraphQL array
      static boolean isEnum​(org.jboss.jandex.Type type)  
      static boolean isMap​(org.jboss.jandex.Type type)
      Return true if type is java Map or its implementations (KNOWN_MAPS)
      static boolean isMulti​(org.jboss.jandex.Type type)  
      static boolean isOptional​(org.jboss.jandex.Type type)
      Check if a certain type is Optional
      static boolean isParameterized​(org.jboss.jandex.Type type)  
      static boolean isPrimitive​(org.jboss.jandex.Type type)  
      static boolean isTypeVariable​(org.jboss.jandex.Type type)  
      static boolean isUni​(org.jboss.jandex.Type type)  
    • Field Detail

      • OBJECT

        public static final org.jboss.jandex.DotName OBJECT
      • COLLECTION

        public static final org.jboss.jandex.DotName COLLECTION
      • LIST

        public static final org.jboss.jandex.DotName LIST
      • LINKED_LIST

        public static final org.jboss.jandex.DotName LINKED_LIST
      • VECTOR

        public static final org.jboss.jandex.DotName VECTOR
      • ARRAY_LIST

        public static final org.jboss.jandex.DotName ARRAY_LIST
      • STACK

        public static final org.jboss.jandex.DotName STACK
      • SET

        public static final org.jboss.jandex.DotName SET
      • HASH_SET

        public static final org.jboss.jandex.DotName HASH_SET
      • SORTED_SET

        public static final org.jboss.jandex.DotName SORTED_SET
      • TREE_SET

        public static final org.jboss.jandex.DotName TREE_SET
      • QUEUE

        public static final org.jboss.jandex.DotName QUEUE
      • DEQUE

        public static final org.jboss.jandex.DotName DEQUE
      • MAP

        public static final org.jboss.jandex.DotName MAP
      • HASH_MAP

        public static final org.jboss.jandex.DotName HASH_MAP
      • TREE_MAP

        public static final org.jboss.jandex.DotName TREE_MAP
      • HASHTABLE

        public static final org.jboss.jandex.DotName HASHTABLE
      • SORTED_MAP

        public static final org.jboss.jandex.DotName SORTED_MAP
      • OPTIONAL

        public static final org.jboss.jandex.DotName OPTIONAL
      • TYPESAFE_RESPONSE

        public static final org.jboss.jandex.DotName TYPESAFE_RESPONSE
      • ERROR_OR

        public static final org.jboss.jandex.DotName ERROR_OR
    • Method Detail

      • isParameterized

        public static boolean isParameterized​(org.jboss.jandex.Type type)
      • isTypeVariable

        public static boolean isTypeVariable​(org.jboss.jandex.Type type)
      • isOptional

        public static boolean isOptional​(org.jboss.jandex.Type type)
        Check if a certain type is Optional
        Parameters:
        type - the type
        Returns:
        true if it is
      • isEnum

        public static boolean isEnum​(org.jboss.jandex.Type type)
      • isAsync

        public static boolean isAsync​(org.jboss.jandex.Type type)
      • isUni

        public static boolean isUni​(org.jboss.jandex.Type type)
      • isMulti

        public static boolean isMulti​(org.jboss.jandex.Type type)
      • isPrimitive

        public static boolean isPrimitive​(org.jboss.jandex.Type type)
      • isClass

        public static boolean isClass​(org.jboss.jandex.Type type)
      • isArray

        public static boolean isArray​(org.jboss.jandex.Type type)
        Return true if this is an array
        Parameters:
        type - to check
        Returns:
        if this is an array
      • isCollection

        public static boolean isCollection​(org.jboss.jandex.Type type)
        Return true if type is java Collection type which is handled as GraphQL array
        Parameters:
        type - to check
        Returns:
        if this is a collection
      • isMap

        public static boolean isMap​(org.jboss.jandex.Type type)
        Return true if type is java Map or its implementations (KNOWN_MAPS)
        Parameters:
        type - to check
        Returns:
        if this is a map