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
FieldsModifier and TypeFieldDescriptionprivate 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
ConstructorsModifierConstructorDescriptionprotected
ExceptionTableCollector
(org.objectweb.asm.MethodVisitor methodVisitor) Creates a new exception table collector. -
Method Summary
Modifier and TypeMethodDescriptionorg.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
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
-
Field Details
-
methodVisitor
private final org.objectweb.asm.MethodVisitor methodVisitorThe 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 classorg.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 classorg.objectweb.asm.MethodVisitor
-