protected static class Advice.AdviceVisitor.WithoutExitAdvice extends Advice.AdviceVisitor
Advice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdvice
Advice.Dispatcher.RelocationHandler.Relocation.ForLabel
argumentHandler, instrumentedMethod, methodExit, methodSizeHandler, stackMapFrameHandler
Modifier | Constructor and Description |
---|---|
protected |
WithoutExitAdvice(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
StackManipulation exceptionHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
int writerFlags,
int readerFlags)
Creates an advice visitor that does not apply exit advice.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(org.objectweb.asm.MethodVisitor methodVisitor)
Applies this relocator.
|
protected void |
onUserEnd()
Writes the advice for completing the instrumented method.
|
protected void |
onUserPrepare()
Invoked when the user method's exception handler (if any) is supposed to be prepared.
|
protected void |
onUserStart()
Writes the advice for entering the instrumented method.
|
onAfterExceptionTable, onVisitFrame, onVisitIincInsn, onVisitVarInsn, visitLocalVariable, visitLocalVariableAnnotation, visitMaxs
onVisitFieldInsn, onVisitInsn, onVisitIntInsn, onVisitInvokeDynamicInsn, onVisitJumpInsn, onVisitLabel, onVisitLdcInsn, onVisitLookupSwitchInsn, onVisitMethodInsn, onVisitMethodInsn, onVisitMultiANewArrayInsn, onVisitTableSwitchInsn, onVisitTypeInsn, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTypeInsn, visitVarInsn
visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitInsnAnnotation, visitLineNumber, visitParameter, visitParameterAnnotation, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation
protected WithoutExitAdvice(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, int writerFlags, int readerFlags)
methodVisitor
- The method visitor for the instrumented method.implementationContext
- The implementation context to use.assigner
- The assigner to use.exceptionHandler
- The stack manipulation to apply within a suppression handler.instrumentedType
- A description of the instrumented type.instrumentedMethod
- A description of the instrumented method.methodEnter
- The dispatcher to be used for method enter.writerFlags
- The ASM writer flags that were set.readerFlags
- The ASM reader flags that were set.public void apply(org.objectweb.asm.MethodVisitor methodVisitor)
methodVisitor
- The method visitor to use.protected void onUserPrepare()
Advice.AdviceVisitor
onUserPrepare
in class Advice.AdviceVisitor
protected void onUserStart()
Advice.AdviceVisitor
onUserStart
in class Advice.AdviceVisitor
protected void onUserEnd()
Advice.AdviceVisitor
onUserEnd
in class Advice.AdviceVisitor
Copyright © 2014–2021. All rights reserved.