Class 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 org.objectweb.asm.MethodVisitor 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.objectweb.asm.AnnotationVisitor visitTryCatchAnnotation​(int typeReference, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)  
      void visitTryCatchBlock​(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, java.lang.String type)  
      • Methods inherited from class org.objectweb.asm.MethodVisitor

        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 Detail

      • methodVisitor

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

      • 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 Detail

      • visitTryCatchBlock

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

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