Class TypeDescription.Generic.OfNonGenericType.Latent

    • Constructor Detail

      • Latent

        public Latent​(TypeDescription typeDescription,
                      AnnotationSource annotationSource)
        Creates a non-generic type with an implicit owner type.
        Parameters:
        typeDescription - The non-generic type's raw type.
        annotationSource - The annotation source to query for the declared annotations.
      • Latent

        protected Latent​(TypeDescription typeDescription,
                         TypeDescription.Generic declaringType,
                         AnnotationSource annotationSource)
        Creates a non-generic type.
        Parameters:
        typeDescription - The non-generic type's raw type.
        declaringType - The non-generic type's declaring type.
        annotationSource - The annotation source to query for the declared annotations.
    • Method Detail

      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Description copied from interface: AnnotationSource
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • asErasure

        public TypeDescription asErasure()
        Description copied from interface: TypeDefinition
        Returns the erasure of this type. Wildcard types (TypeDefinition.Sort.WILDCARD) do not have a well-defined erasure and cause an IllegalStateException to be thrown.
        Returns:
        The erasure of this type.