Package net.bytebuddy.asm
Interface Advice.StackMapFrameHandler.ForInstrumentedMethod
-
- All Superinterfaces:
Advice.StackMapFrameHandler
- All Known Implementing Classes:
Advice.StackMapFrameHandler.Default,Advice.StackMapFrameHandler.Default.Trivial,Advice.StackMapFrameHandler.Default.WithPreservedArguments,Advice.StackMapFrameHandler.Default.WithPreservedArguments.WithArgumentCopy,Advice.StackMapFrameHandler.Default.WithPreservedArguments.WithoutArgumentCopy,Advice.StackMapFrameHandler.NoOp
- Enclosing interface:
- Advice.StackMapFrameHandler
public static interface Advice.StackMapFrameHandler.ForInstrumentedMethod extends Advice.StackMapFrameHandler
A stack map frame handler for an instrumented method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.StackMapFrameHandler
Advice.StackMapFrameHandler.Default, Advice.StackMapFrameHandler.ForAdvice, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.ForPostProcessor, Advice.StackMapFrameHandler.NoOp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Advice.StackMapFrameHandler.ForAdvicebindEnter(MethodDescription.TypeToken typeToken)Binds this metadata handler for the enter advice.Advice.StackMapFrameHandler.ForAdvicebindExit(MethodDescription.TypeToken typeToken)Binds this metadata handler for the exit advice.intgetReaderHint()Returns a hint to supply to aClassReaderwhen parsing an advice method.voidinjectInitializationFrame(org.objectweb.asm.MethodVisitor methodVisitor)Injects a frame after initialization if any initialization is performed.voidinjectPostCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)Injects a frame indicating the completion of the currently handled method, i.e.voidinjectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)Injects a frame before executing the instrumented method.-
Methods inherited from interface net.bytebuddy.asm.Advice.StackMapFrameHandler
injectCompletionFrame, injectExceptionFrame, injectReturnFrame, translateFrame
-
-
-
-
Method Detail
-
bindEnter
Advice.StackMapFrameHandler.ForAdvice bindEnter(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the enter advice.- Parameters:
typeToken- The type token representing the advice method.- Returns:
- An appropriate metadata handler for the enter method.
-
bindExit
Advice.StackMapFrameHandler.ForAdvice bindExit(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the exit advice.- Parameters:
typeToken- The type token representing the advice method.- Returns:
- An appropriate metadata handler for the enter method.
-
getReaderHint
int getReaderHint()
Returns a hint to supply to aClassReaderwhen parsing an advice method.- Returns:
- The reader hint to supply to an ASM class reader.
-
injectInitializationFrame
void injectInitializationFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame after initialization if any initialization is performed.- Parameters:
methodVisitor- The method visitor to write any frames to.
-
injectStartFrame
void injectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame before executing the instrumented method.- Parameters:
methodVisitor- The method visitor to write any frames to.
-
injectPostCompletionFrame
void injectPostCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
Injects a frame indicating the completion of the currently handled method, i.e. all yielded types were added.- Parameters:
methodVisitor- The method visitor onto which to apply the stack map frame.
-
-