Class TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlay

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.OfTypeVariable

public static class TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlay extends TypeDescription.Generic.OfTypeVariable
A type variable with explicit annotations that replace the annotations that are declared by the provided type variable.
  • Field Details

    • typeVariable

      private final TypeDescription.Generic typeVariable
      The type variable to represent.
    • annotationSource

      private final AnnotationSource annotationSource
      The annotation source to query for the declared annotations.
  • Constructor Details

    • WithAnnotationOverlay

      public WithAnnotationOverlay(TypeDescription.Generic typeVariable, AnnotationSource annotationSource)
      Creates a new type definition for a type variable with explicit annotations.
      Parameters:
      typeVariable - The type variable to represent.
      annotationSource - The annotation source to query for the declared annotations.
  • Method Details