Package net.bytebuddy.asm
Interface Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
-
- All Known Implementing Classes:
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.Disabled
,Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType
,Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue
,Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue.Inverted
- Enclosing interface:
- Advice.Dispatcher.Resolved.ForMethodEnter
public static interface Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
A skip dispatcher is responsible for skipping the instrumented method depending on the return value of the enter advice method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.Disabled
A disabled skip dispatcher where the instrumented method is always executed.static class
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType
A skip dispatcher that skips a value if it is of a given instance.static class
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue
A skip dispatcher where the instrumented method is skipped for any default value of the advice method's return type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(org.objectweb.asm.MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
Applies this skip dispatcher.
-
-
-
Method Detail
-
apply
void apply(org.objectweb.asm.MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
Applies this skip dispatcher.- Parameters:
methodVisitor
- The method visitor to write to.methodSizeHandler
- The method size handler of the advice method to use.stackMapFrameHandler
- The stack map frame handler of the advice method to use.instrumentedMethod
- The instrumented method.skipHandler
- The skip handler to use.
-
-