Class AnnotationAppender.ForTypeAnnotations

    • Field Detail

      • VARIABLE_ON_TYPE

        public static final boolean VARIABLE_ON_TYPE
        Indicates that type variables type annotations are written on a Java type.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • EMPTY_TYPE_PATH

        private static final java.lang.String EMPTY_TYPE_PATH
        Represents an empty type path.
        See Also:
        Constant Field Values
      • COMPONENT_TYPE_PATH

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

        private static final char WILDCARD_TYPE_PATH
        Represents a wildcard type step within a type path.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • INDEXED_TYPE_DELIMITER

        private static final char INDEXED_TYPE_DELIMITER
        Represents an index type delimiter within a type path.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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 java.lang.String typePath
        The type path to use.
    • Constructor Detail

      • 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,
                                     java.lang.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.