protected class Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.AdviceMethodInliner extends Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner implements Advice.Dispatcher.Bound.ForMethodEnter
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, labels, methodSizeHandler, methodVisitor, stackMapFrameHandler, suppressionHandler
api, cv
Constructor and Description |
---|
AdviceMethodInliner(MethodDescription.InDefinedShape instrumentedMethod,
MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
ClassReader classReader,
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher skipDispatcher)
Creates a new advice method inliner for a method enter.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Advice.Dispatcher.Bound.SkipHandler skipHandler)
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(MethodDescription.InDefinedShape instrumentedMethod, MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, ClassReader classReader, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher skipDispatcher)
instrumentedMethod
- 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.skipDispatcher
- The skip dispatcher to use.public void apply(Advice.Dispatcher.Bound.SkipHandler skipHandler)
Advice.Dispatcher.Bound.ForMethodEnter
apply
in interface Advice.Dispatcher.Bound.ForMethodEnter
skipHandler
- The skip handler to use.Copyright © 2014–2016. All rights reserved.