Uses of Interface
net.bytebuddy.asm.Advice.Delegator
Packages that use Advice.Delegator
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
-
Uses of Advice.Delegator in net.bytebuddy.asm
Classes in net.bytebuddy.asm that implement Advice.DelegatorModifier and TypeClassDescriptionstatic class
Invokes an advice method using a dynamic method call.static enum
Invokes an advice method using a static method call.Fields in net.bytebuddy.asm declared as Advice.DelegatorModifier and TypeFieldDescriptionprotected final Advice.Delegator
Advice.Dispatcher.Delegating.delegator
The delegator to use.private final Advice.Delegator
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.delegator
The delegator to use.protected final Advice.Delegator
Advice.Dispatcher.Delegating.Resolved.delegator
The delegator to use.private final Advice.Delegator
Advice.WithCustomMapping.delegator
The delegator to use.Methods in net.bytebuddy.asm that return Advice.DelegatorModifier and TypeMethodDescriptionprotected static Advice.Delegator
Advice.Delegator.ForDynamicInvocation.of
(MethodDescription.InDefinedShape bootstrapMethod) Creates a new dynamic invocation delegator.Methods in net.bytebuddy.asm with parameters of type Advice.DelegatorModifier and TypeMethodDescriptionprivate static Advice.Dispatcher.Unresolved
Advice.locate
(Class<? extends Annotation> type, MethodDescription.InDefinedShape property, Advice.Dispatcher.Unresolved dispatcher, MethodDescription.InDefinedShape methodDescription, Advice.Delegator delegator) Locates a dispatcher for the method if available.protected static Advice.Dispatcher.Resolved.ForMethodEnter
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.of
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Advice.Delegator delegator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, boolean methodExit) Resolves enter advice that only exposes the enter type if this is necessary.protected static Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.of
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Advice.Delegator delegator, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType) Resolves exit advice that handles exceptions depending on the specification of the exit advice.protected static Advice
Advice.to
(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator delegator) Creates a new advice.protected static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator delegator) Creates a new advice.Constructors in net.bytebuddy.asm with parameters of type Advice.DelegatorModifierConstructorDescriptionprotected
AdviceMethodWriter
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
Delegating
(MethodDescription.InDefinedShape adviceMethod, Advice.Delegator delegator) Creates a new delegating advice dispatcher.protected
ForMethodEnter
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodEnter
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method enter advice.protected
ForMethodExit
(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodExit
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice.protected
Resolved
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.Delegator delegator) Creates a new resolved version of a dispatcher.protected
WithCustomMapping
(Advice.PostProcessor.Factory postProcessorFactory, Map<Class<? extends Annotation>, Advice.OffsetMapping.Factory<?>> offsetMappings, Advice.Delegator delegator) Creates a new custom mapping builder step with the given custom mappings.protected
WithDiscardedEnterType
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.protected
WithExceptionHandler
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, TypeDescription throwable, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.protected
WithoutExceptionHandler
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.protected
WithRetainedEnterType
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.