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
assigner, classReader, implementationContext, instrumentedMethod, instrumentedType, labels, methodSizeHandler, methodVisitor, stackMapFrameHandler, suppressionHandler
api, cv
Modifier | Constructor and Description |
---|---|
protected |
AdviceMethodInliner(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
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.
|
doApply, prepare, visitMethod
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitOuterClass, visitSource, visitTypeAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
protected AdviceMethodInliner(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, ClassReader classReader, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher skipDispatcher)
instrumentedType
- A description of the instrumented type.instrumentedMethod
- A description of the instrumented method.methodVisitor
- The method visitor for writing the instrumented method.implementationContext
- The implementation context to use.assigner
- The assigner to use.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–2017. All rights reserved.