Class TypePool.Default.TypeExtractor.MethodExtractor

java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.pool.TypePool.Default.TypeExtractor.MethodExtractor
All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
Enclosing class:
TypePool.Default.TypeExtractor

protected class TypePool.Default.TypeExtractor.MethodExtractor extends org.objectweb.asm.MethodVisitor implements TypePool.Default.AnnotationRegistrant
A method extractor reads a method within a class file and collects data that is relevant to creating a related method description.
  • Field Details

  • Constructor Details

    • MethodExtractor

      protected MethodExtractor(int modifiers, String internalName, String descriptor, @MaybeNull String genericSignature, @MaybeNull String[] exceptionName)
      Creates a method extractor.
      Parameters:
      modifiers - The modifiers found for this method.
      internalName - The internal name found for this method.
      descriptor - The descriptor found for this method.
      genericSignature - The generic signature of the method or null if it is not generic.
      exceptionName - An array of internal names of the exceptions of the found method or null if there are no such exceptions.
  • Method Details

    • visitTypeAnnotation

      @MaybeNull public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int rawTypeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
      Overrides:
      visitTypeAnnotation in class org.objectweb.asm.MethodVisitor
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
      Overrides:
      visitAnnotation in class org.objectweb.asm.MethodVisitor
    • visitAnnotableParameterCount

      public void visitAnnotableParameterCount(int count, boolean visible)
      Overrides:
      visitAnnotableParameterCount in class org.objectweb.asm.MethodVisitor
    • visitParameterAnnotation

      public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int index, String descriptor, boolean visible)
      Overrides:
      visitParameterAnnotation in class org.objectweb.asm.MethodVisitor
    • visitLabel

      public void visitLabel(org.objectweb.asm.Label label)
      Overrides:
      visitLabel in class org.objectweb.asm.MethodVisitor
    • visitLocalVariable

      public void visitLocalVariable(String name, String descriptor, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int offset)
      Overrides:
      visitLocalVariable in class org.objectweb.asm.MethodVisitor
    • visitParameter

      public void visitParameter(String name, int modifiers)
      Overrides:
      visitParameter in class org.objectweb.asm.MethodVisitor
    • visitAnnotationDefault

      public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()
      Overrides:
      visitAnnotationDefault in class org.objectweb.asm.MethodVisitor
    • register

      public void register(String ignored, AnnotationValue<?,?> annotationValue)
      Registers an annotation value.
      Specified by:
      register in interface TypePool.Default.AnnotationRegistrant
      Parameters:
      ignored - The name of the annotation value.
      annotationValue - The value of the annotation.
    • onComplete

      public void onComplete()
      Called once all annotation values are visited.
      Specified by:
      onComplete in interface TypePool.Default.AnnotationRegistrant
    • visitEnd

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