protected class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.AdviceMethodInliner extends Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner implements Advice.Dispatcher.Bound.ForMethodExit
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableCollector, Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableExtractor, Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableSubstitutor
Advice.Dispatcher.Bound.ForMethodEnter, Advice.Dispatcher.Bound.ForMethodExit, Advice.Dispatcher.Bound.SkipHandler
classReader, instrumentedMethod, instrumentedType, labels, methodSizeHandler, methodVisitor, stackMapFrameHandler, suppressionHandler
api, cv
Constructor and Description |
---|
AdviceMethodInliner(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
ClassReader classReader)
Creates a new advice method inliner for a method exit.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies this dispatcher.
|
String |
toString() |
doApply, prepare, visitMethod
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource, visitTypeAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
prepare
public AdviceMethodInliner(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, ClassReader classReader)
instrumentedType
- A description of the instrumented type.instrumentedMethod
- A description of the instrumented method.methodVisitor
- The method visitor for writing the instrumented method.methodSizeHandler
- A handler for computing the method size requirements.stackMapFrameHandler
- A handler for translating and injecting stack map frames.suppressionHandler
- A bound suppression handler that is used for suppressing exceptions of this advice method.classReader
- A class reader for parsing the class file containing the represented advice method.public void apply()
Advice.Dispatcher.Bound.ForMethodExit
apply
in interface Advice.Dispatcher.Bound.ForMethodExit
Copyright © 2014–2016. All rights reserved.