Package net.bytebuddy.asm
Class Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType
- java.lang.Object
-
- net.bytebuddy.asm.Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType
-
- All Implemented Interfaces:
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
- Enclosing interface:
- Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
public static class Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType extends java.lang.Object implements Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
A skip dispatcher that skips a value if it is of a given instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.Disabled, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForType(TypeDescription typeDescription)
Creates a new skip dispatcher for a given type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
of(MethodDescription adviceMethod)
Creates a skip dispatcher for an advice method.protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
of(TypeDescription typeDescription, MethodDescription adviceMethod)
Creates a skip dispatcher for a given annotation type and advice method.
-
-
-
Constructor Detail
-
ForType
protected ForType(TypeDescription typeDescription)
Creates a new skip dispatcher for a given type.- Parameters:
typeDescription
- The type for which to skip instances.
-
-
Method Detail
-
of
public static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher of(MethodDescription adviceMethod)
Creates a skip dispatcher for an advice method.- Parameters:
adviceMethod
- The advice method for which to resolve a skip dispatcher.- Returns:
- An appropriate skip dispatcher.
-
of
protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher of(TypeDescription typeDescription, MethodDescription adviceMethod)
Creates a skip dispatcher for a given annotation type and advice method.- Parameters:
typeDescription
- The type that was specified as an annotation value.adviceMethod
- The advice method.- Returns:
- An appropriate skip dispatcher.
-
apply
public void apply(org.objectweb.asm.MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
Description copied from interface:Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
Applies this skip dispatcher.- Specified by:
apply
in interfaceAdvice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
- 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.
-
-