Class TypePool.Default.TypeExtractor.AnnotationExtractor

  • Enclosing class:
    TypePool.Default.TypeExtractor

    protected class TypePool.Default.TypeExtractor.AnnotationExtractor
    extends org.objectweb.asm.AnnotationVisitor
    An annotation extractor reads an annotation found in a class field an collects data that is relevant to creating a related annotation description.
    • Constructor Detail

      • AnnotationExtractor

        protected AnnotationExtractor​(java.lang.String descriptor,
                                      java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens,
                                      TypePool.Default.ComponentTypeLocator componentTypeLocator)
        Creates a new annotation extractor for a byte code element without an index.
        Parameters:
        descriptor - The annotation descriptor.
        annotationTokens - The collection for storing any discovered annotation tokens.
        componentTypeLocator - The component type locator to use.
      • AnnotationExtractor

        protected AnnotationExtractor​(java.lang.String descriptor,
                                      int index,
                                      java.util.Map<java.lang.Integer,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
                                      TypePool.Default.ComponentTypeLocator componentTypeLocator)
        Creates a new annotation extractor for a byte code element with an index.
        Parameters:
        descriptor - The annotation descriptor.
        index - The index of the element for which the annotations are collected.
        annotationTokens - The collection for storing any discovered annotation tokens.
        componentTypeLocator - The component type locator to use.
      • AnnotationExtractor

        protected AnnotationExtractor​(TypePool.Default.AnnotationRegistrant annotationRegistrant,
                                      TypePool.Default.ComponentTypeLocator componentTypeLocator)
        Creates a new annotation extractor.
        Parameters:
        annotationRegistrant - The annotation registrant to register found annotation values on.
        componentTypeLocator - A locator for the component type of any found annotation value.
    • Method Detail

      • visit

        public void visit​(java.lang.String name,
                          java.lang.Object value)
        Overrides:
        visit in class org.objectweb.asm.AnnotationVisitor
      • visitEnum

        public void visitEnum​(java.lang.String name,
                              java.lang.String descriptor,
                              java.lang.String value)
        Overrides:
        visitEnum in class org.objectweb.asm.AnnotationVisitor
      • visitAnnotation

        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String name,
                                                                   java.lang.String descriptor)
        Overrides:
        visitAnnotation in class org.objectweb.asm.AnnotationVisitor
      • visitArray

        public org.objectweb.asm.AnnotationVisitor visitArray​(java.lang.String name)
        Overrides:
        visitArray in class org.objectweb.asm.AnnotationVisitor
      • visitEnd

        public void visitEnd()
        Overrides:
        visitEnd in class org.objectweb.asm.AnnotationVisitor