Class TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor

java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor
Enclosing class:
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor

protected class TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor extends org.objectweb.asm.MethodVisitor
A method visitor that preserves the code of a method in the class file by copying it into a rebased method while copying all attributes and annotations to the actual method.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.objectweb.asm.MethodVisitor
    The method visitor of the actual method.
    The method pool entry to apply.
    The resolution of a potential rebased method.

    Fields inherited from class org.objectweb.asm.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CodePreservingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor, TypeWriter.MethodPool.Record record, MethodRebaseResolver.Resolution resolution)
    Creates a new code preserving method visitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visitAnnotableParameterCount(int count, boolean visible)
     
    org.objectweb.asm.AnnotationVisitor
    visitAnnotation(String descriptor, boolean visible)
     
    org.objectweb.asm.AnnotationVisitor
     
    void
     
    void
    visitMaxs(int stackSize, int localVariableLength)
     
    org.objectweb.asm.AnnotationVisitor
    visitParameterAnnotation(int index, String descriptor, boolean visible)
     
    org.objectweb.asm.AnnotationVisitor
    visitTypeAnnotation(int typeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
     

    Methods inherited from class org.objectweb.asm.MethodVisitor

    visitAttribute, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsn, visitVarInsn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • actualMethodVisitor

      private final org.objectweb.asm.MethodVisitor actualMethodVisitor
      The method visitor of the actual method.
    • record

      private final TypeWriter.MethodPool.Record record
      The method pool entry to apply.
    • resolution

      private final MethodRebaseResolver.Resolution resolution
      The resolution of a potential rebased method.
  • Constructor Details

    • CodePreservingMethodVisitor

      protected CodePreservingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor, TypeWriter.MethodPool.Record record, MethodRebaseResolver.Resolution resolution)
      Creates a new code preserving method visitor.
      Parameters:
      actualMethodVisitor - The method visitor of the actual method.
      record - The method pool entry to apply.
      resolution - The resolution of the method rebase resolver in use.
  • Method Details

    • visitAnnotationDefault

      @MaybeNull public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()
      Overrides:
      visitAnnotationDefault in class org.objectweb.asm.MethodVisitor
    • visitTypeAnnotation

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

      @MaybeNull 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

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

      public void visitCode()
      Overrides:
      visitCode in class org.objectweb.asm.MethodVisitor
    • visitMaxs

      public void visitMaxs(int stackSize, int localVariableLength)
      Overrides:
      visitMaxs in class org.objectweb.asm.MethodVisitor