Class Classes


  • public class Classes
    extends Object
    Class helper
    Author:
    Phillip Kruger (phillip.kruger@redhat.com)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jboss.jandex.DotName ADAPTER  
      static org.jboss.jandex.DotName ARRAY_LIST  
      static org.jboss.jandex.DotName COLLECTION  
      static org.jboss.jandex.DotName DEQUE  
      static org.jboss.jandex.DotName DURATION  
      static org.jboss.jandex.DotName ENTRY  
      static org.jboss.jandex.DotName ENUM  
      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 INSTANT  
      static org.jboss.jandex.DotName JSONB_ADAPTER  
      static org.jboss.jandex.DotName LINKED_LIST  
      static org.jboss.jandex.DotName LIST  
      static org.jboss.jandex.DotName LOCALDATE  
      static org.jboss.jandex.DotName LOCALDATETIME  
      static org.jboss.jandex.DotName LOCALTIME  
      static org.jboss.jandex.DotName MAP  
      static org.jboss.jandex.DotName OBJECT  
      static org.jboss.jandex.DotName OFFSETDATETIME  
      static org.jboss.jandex.DotName OFFSETTIME  
      static org.jboss.jandex.DotName OPTIONAL  
      static org.jboss.jandex.DotName PERIOD  
      static org.jboss.jandex.DotName QUEUE  
      static org.jboss.jandex.DotName RECORD  
      static org.jboss.jandex.DotName SERIALIZABLE  
      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 SQL_DATE  
      static org.jboss.jandex.DotName SQL_TIME  
      static org.jboss.jandex.DotName SQL_TIMESTAMP  
      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 UTIL_DATE  
      static org.jboss.jandex.DotName VECTOR  
      static org.jboss.jandex.DotName ZONEDDATETIME  
    • Field Detail

      • SERIALIZABLE

        public static final org.jboss.jandex.DotName SERIALIZABLE
      • 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
      • ENTRY

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

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

        public static final org.jboss.jandex.DotName ENUM
      • RECORD

        public static final org.jboss.jandex.DotName RECORD
      • LOCALDATE

        public static final org.jboss.jandex.DotName LOCALDATE
      • LOCALDATETIME

        public static final org.jboss.jandex.DotName LOCALDATETIME
      • LOCALTIME

        public static final org.jboss.jandex.DotName LOCALTIME
      • ZONEDDATETIME

        public static final org.jboss.jandex.DotName ZONEDDATETIME
      • OFFSETDATETIME

        public static final org.jboss.jandex.DotName OFFSETDATETIME
      • OFFSETTIME

        public static final org.jboss.jandex.DotName OFFSETTIME
      • INSTANT

        public static final org.jboss.jandex.DotName INSTANT
      • PERIOD

        public static final org.jboss.jandex.DotName PERIOD
      • DURATION

        public static final org.jboss.jandex.DotName DURATION
      • UTIL_DATE

        public static final org.jboss.jandex.DotName UTIL_DATE
      • SQL_DATE

        public static final org.jboss.jandex.DotName SQL_DATE
      • SQL_TIMESTAMP

        public static final org.jboss.jandex.DotName SQL_TIMESTAMP
      • SQL_TIME

        public static final org.jboss.jandex.DotName SQL_TIME
      • JSONB_ADAPTER

        public static final org.jboss.jandex.DotName JSONB_ADAPTER
      • ADAPTER

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

      • isWrapper

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

        public static boolean isParameterized​(org.jboss.jandex.Type type)
        Check if this is a Parameterized type
        Parameters:
        type -
        Returns:
      • 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
      • isInterface

        public static boolean isInterface​(org.jboss.jandex.ClassInfo classInfo)
        Check if a certain class is an interface
        Parameters:
        classInfo - the class to check
        Returns:
        true if it is
      • isEnum

        public static boolean isEnum​(org.jboss.jandex.ClassInfo classInfo)
        Check if a certain class is an enum
        Parameters:
        classInfo - the class to check
        Returns:
        true if it is
      • isNumberLikeTypeOrContainedIn

        public static boolean isNumberLikeTypeOrContainedIn​(org.jboss.jandex.Type type)
        Check if this type is a Number (or collection of numbers)
        Parameters:
        type - the type to check
        Returns:
        true if it is
      • isDateLikeTypeOrContainedIn

        public static boolean isDateLikeTypeOrContainedIn​(org.jboss.jandex.Type type)
        Check if this type is a Date (or collection of numbers)
        Parameters:
        type - the type to check
        Returns:
        true if it is
      • isCollectionOrArray

        @Deprecated
        public static boolean isCollectionOrArray​(org.jboss.jandex.Type type)
        Deprecated.
        Return true if type is java array, or it is Collection type which is handled as GraphQL array
        Parameters:
        type - to check
        Returns:
        if this is a collection or array
      • isArray

        public static boolean isArray​(org.jboss.jandex.Type type)
        Return true if this is an array
        Parameters:
        type -
        Returns:
      • 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)
      • isUnwrappedType

        @Deprecated
        public static boolean isUnwrappedType​(org.jboss.jandex.Type type)
        Deprecated.
        Return true if given type is parametrized type unwrapped/handled by the runtime before the serialization (Optional<>, CompletableFutur<>, CompletionStage<> etc)
        Parameters:
        type - to be checked
        Returns:
        true if type is unwrapped by the runtime