Package net.bytebuddy.asm
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 org.objectweb.asm.MethodVisitor
methodVisitor
The method visitor for which the try-catch-finally blocks should be written.
-
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
-
-
-
-
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 classorg.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 classorg.objectweb.asm.MethodVisitor
-
-