Class TypeDescription.Generic.OfGenericArray.ForLoadedType

    • Field Detail

      • genericArrayType

        private final java.lang.reflect.GenericArrayType genericArrayType
        The loaded generic array type.
    • Constructor Detail

      • ForLoadedType

        public ForLoadedType​(java.lang.reflect.GenericArrayType genericArrayType)
        Creates a type description of the given generic array type.
        Parameters:
        genericArrayType - The loaded generic array type.
      • ForLoadedType

        protected ForLoadedType​(java.lang.reflect.GenericArrayType genericArrayType,
                                TypeDescription.Generic.AnnotationReader annotationReader)
        Creates a type description of the given generic array type.
        Parameters:
        genericArrayType - The loaded generic array type.
        annotationReader - The annotation reader to query for the generic array type's annotations.
    • Method Detail

      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • represents

        public boolean represents​(java.lang.reflect.Type type)
        Checks if the type described by this instance represents type.
        Specified by:
        represents in interface TypeDefinition
        Overrides:
        represents in class TypeDescription.Generic.AbstractBase
        Parameters:
        type - The type of interest.
        Returns:
        true if the type described by this instance represents type.