protected static class Advice.AdviceVisitor.WithoutExitAdvice extends Advice.AdviceVisitor
Advice.AdviceVisitor.CodeCopier, Advice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdvice
instrumentedMethod, metaDataHandler
api, mv
Constructor and Description |
---|
WithoutExitAdvice(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
byte[] binaryRepresentation,
int writerFlags,
int readerFlags)
Creates an advice visitor that does not apply exit advice.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onUserEnd()
Writes the advise for completing the instrumented method.
|
protected void |
onUserStart()
Writes the advise for entering the instrumented method.
|
String |
toString() |
append, variable, variable, visitCode, visitFrame, visitIincInsn, visitMaxs, visitVarInsn
visitAnnotation, visitAnnotationDefault, visitAttribute, visitEnd, visitFieldInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn
public WithoutExitAdvice(MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, byte[] binaryRepresentation, int writerFlags, int readerFlags)
methodVisitor
- The method visitor for the instrumented method.instrumentedMethod
- A description of the instrumented method.methodEnter
- The dispatcher to be used for method entry.binaryRepresentation
- The binary representation of the advise methods' class file.writerFlags
- The ASM writer flags that were set.readerFlags
- The ASM reader flags that were set.protected void onUserStart()
Advice.AdviceVisitor
onUserStart
in class Advice.AdviceVisitor
protected void onUserEnd()
Advice.AdviceVisitor
onUserEnd
in class Advice.AdviceVisitor
Copyright © 2014–2016. All rights reserved.