Class Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableCollector

java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableCollector
Enclosing class:
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner

protected class Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableCollector extends org.objectweb.asm.MethodVisitor
A visitor that only writes try-catch-finally blocks to the supplied method visitor. All labels of these tables are collected for substitution when revisiting the reminder of the method.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.objectweb.asm.MethodVisitor
    The method visitor for which the try-catch-finally blocks should be written.

    Fields inherited from class org.objectweb.asm.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExceptionTableCollector(org.objectweb.asm.MethodVisitor methodVisitor)
    Creates a new exception table collector.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.AnnotationVisitor
    visitTryCatchAnnotation(int typeReference, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
     
    void
    visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type)
     

    Methods inherited from class org.objectweb.asm.MethodVisitor

    getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTypeAnnotation, visitTypeInsn, visitVarInsn

    Methods inherited from class java.lang.Object

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

    • methodVisitor

      private final org.objectweb.asm.MethodVisitor methodVisitor
      The method visitor for which the try-catch-finally blocks should be written.
  • Constructor Details

    • ExceptionTableCollector

      protected ExceptionTableCollector(org.objectweb.asm.MethodVisitor methodVisitor)
      Creates a new exception table collector.
      Parameters:
      methodVisitor - The method visitor for which the try-catch-finally blocks should be written.
  • Method Details

    • visitTryCatchBlock

      public void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, @MaybeNull String type)
      Overrides:
      visitTryCatchBlock in class org.objectweb.asm.MethodVisitor
    • visitTryCatchAnnotation

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