Class AnnotationAppender.ForTypeAnnotations

java.lang.Object
net.bytebuddy.implementation.attribute.AnnotationAppender.ForTypeAnnotations
All Implemented Interfaces:
TypeDescription.Generic.Visitor<AnnotationAppender>
Enclosing interface:
AnnotationAppender

@Enhance public static class AnnotationAppender.ForTypeAnnotations extends Object implements TypeDescription.Generic.Visitor<AnnotationAppender>
A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a supplied AnnotationAppender.
  • Field Details

    • VARIABLE_ON_TYPE

      public static final boolean VARIABLE_ON_TYPE
      Indicates that type variables type annotations are written on a Java type.
      See Also:
    • VARIABLE_ON_INVOKEABLE

      public static final boolean VARIABLE_ON_INVOKEABLE
      Indicates that type variables type annotations are written on a Java method or constructor.
      See Also:
    • EMPTY_TYPE_PATH

      private static final String EMPTY_TYPE_PATH
      Represents an empty type path.
      See Also:
    • COMPONENT_TYPE_PATH

      private static final char COMPONENT_TYPE_PATH
      Represents a step to a component type within a type path.
      See Also:
    • WILDCARD_TYPE_PATH

      private static final char WILDCARD_TYPE_PATH
      Represents a wildcard type step within a type path.
      See Also:
    • INNER_CLASS_PATH

      private static final char INNER_CLASS_PATH
      Represents a (reversed) type step to an inner class within a type path.
      See Also:
    • INDEXED_TYPE_DELIMITER

      private static final char INDEXED_TYPE_DELIMITER
      Represents an index type delimiter within a type path.
      See Also:
    • SUPER_CLASS_INDEX

      private static final int SUPER_CLASS_INDEX
      The index that indicates that super type type annotations are written onto a super class.
      See Also:
    • annotationAppender

      private final AnnotationAppender annotationAppender
      The annotation appender to use.
    • annotationValueFilter

      private final AnnotationValueFilter annotationValueFilter
      The annotation value filter to use.
    • typeReference

      private final int typeReference
      The type reference to use.
    • typePath

      private final String typePath
      The type path to use.
  • Constructor Details

    • ForTypeAnnotations

      protected ForTypeAnnotations(AnnotationAppender annotationAppender, AnnotationValueFilter annotationValueFilter, org.objectweb.asm.TypeReference typeReference)
      Creates a new type annotation appending visitor for an empty type path.
      Parameters:
      annotationAppender - The annotation appender to use.
      annotationValueFilter - The annotation value filter to use.
      typeReference - The type reference to use.
    • ForTypeAnnotations

      protected ForTypeAnnotations(AnnotationAppender annotationAppender, AnnotationValueFilter annotationValueFilter, int typeReference, String typePath)
      Creates a new type annotation appending visitor.
      Parameters:
      annotationAppender - The annotation appender to use.
      annotationValueFilter - The annotation value filter to use.
      typeReference - The type reference to use.
      typePath - The type path to use.
  • Method Details