Package net.bytebuddy.asm
Class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.AdviceMethodInliner
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner
-
- net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.AdviceMethodInliner
-
- All Implemented Interfaces:
Advice.Dispatcher.Bound
,Advice.Dispatcher.Bound.ForMethodExit
- Enclosing class:
- Advice.Dispatcher.Inlining.Resolved.ForMethodExit
protected class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.AdviceMethodInliner extends Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner implements Advice.Dispatcher.Bound.ForMethodExit
An advice method inliner for a method exit.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableCollector, Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableExtractor, Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.ExceptionTableSubstitutor
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Bound
Advice.Dispatcher.Bound.ForMethodEnter, Advice.Dispatcher.Bound.ForMethodExit, Advice.Dispatcher.Bound.SkipHandler
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner
assigner, classReader, implementationContext, instrumentedMethod, instrumentedType, labels, methodSizeHandler, methodVisitor, stackMapFrameHandler, suppressionHandler
-
-
Constructor Summary
Constructors Constructor Description AdviceMethodInliner(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, org.objectweb.asm.ClassReader classReader)
Creates a new advice method inliner for a method exit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Applies this dispatcher.-
Methods inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner
doApply, prepare, visitMethod
-
Methods inherited from class org.objectweb.asm.ClassVisitor
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitSource, visitTypeAnnotation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Bound
prepare
-
-
-
-
Constructor Detail
-
AdviceMethodInliner
public AdviceMethodInliner(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, org.objectweb.asm.ClassReader classReader)
Creates a new advice method inliner for a method exit.- Parameters:
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.
-
-
Method Detail
-
apply
public void apply()
Description copied from interface:Advice.Dispatcher.Bound.ForMethodExit
Applies this dispatcher.- Specified by:
apply
in interfaceAdvice.Dispatcher.Bound.ForMethodExit
-
-