Class TypeDescription.Generic.OfNonGenericType.ForLoadedType

All Implemented Interfaces:
Iterable<TypeDefinition>, AnnotationSource, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, TypeDefinition, TypeDescription.Generic
Enclosing class:
TypeDescription.Generic.OfNonGenericType

public static class TypeDescription.Generic.OfNonGenericType.ForLoadedType extends TypeDescription.Generic.OfNonGenericType
Represents a non-generic type for a loaded Class.
  • Field Details

    • TYPE_CACHE

      private static final Map<Class<?>,TypeDescription.Generic> TYPE_CACHE
      A cache of generic type descriptions for commonly used types to avoid unnecessary allocations.
    • type

      private final Class<?> type
      The type that this instance represents.
    • annotationReader

      private final TypeDescription.Generic.AnnotationReader annotationReader
      The annotation reader to query for the non-generic type's annotations.
  • Constructor Details

    • ForLoadedType

      public ForLoadedType(Class<?> type)
      Creates a new description of a generic type of a loaded type. This constructor should not normally be used. Use of(Class) instead.
      Parameters:
      type - The represented type.
    • ForLoadedType

      protected ForLoadedType(Class<?> type, TypeDescription.Generic.AnnotationReader annotationReader)
      /** Creates a new description of a generic type of a loaded type.
      Parameters:
      type - The represented type.
      annotationReader - The annotation reader to query for the non-generic type's annotations.
  • Method Details