protected static class Advice.AdviceVisitor.WithoutExitAdvice extends Advice.AdviceVisitor
Advice.AdviceVisitor.WithExitAdvice, Advice.AdviceVisitor.WithoutExitAdviceinstrumentedMethod, methodExit, methodSizeHandler, methodVisitor, stackMapFrameHandlerapi, mv| Modifier | Constructor and Description |
|---|---|
protected |
WithoutExitAdvice(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an advice visitor that does not apply exit advice.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MethodVisitor methodVisitor)
Applies this skip handler.
|
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.
|
String |
toString() |
onAfterExceptionTable, onVisitIincInsn, onVisitVarInsn, variable, variable, visitFrame, visitLocalVariable, visitLocalVariableAnnotation, visitMaxsonVisitFieldInsn, onVisitInsn, onVisitIntInsn, onVisitInvokeDynamicInsn, onVisitJumpInsn, onVisitLabel, onVisitLdcInsn, onVisitLookupSwitchInsn, onVisitMethodInsn, onVisitMethodInsn, onVisitMultiANewArrayInsn, onVisitTableSwitchInsn, onVisitTypeInsn, visitFieldInsn, visitIincInsn, visitInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTypeInsn, visitVarInsnvisitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitInsnAnnotation, visitLineNumber, visitParameter, visitParameterAnnotation, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotationprotected WithoutExitAdvice(MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, ClassFileVersion classFileVersion, 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.classFileVersion - The instrumented type's class file version.writerFlags - The ASM writer flags that were set.readerFlags - The ASM reader flags that were set.protected void onUserPrepare()
Advice.AdviceVisitoronUserPrepare in class Advice.AdviceVisitorprotected void onUserStart()
Advice.AdviceVisitoronUserStart in class Advice.AdviceVisitorprotected void onUserEnd()
Advice.AdviceVisitoronUserEnd in class Advice.AdviceVisitorpublic void apply(MethodVisitor methodVisitor)
Advice.Dispatcher.Bound.SkipHandlermethodVisitor - The method visitor to write the code to.Copyright © 2014–2016. All rights reserved.