Uses of Class
net.bytebuddy.asm.Advice
Packages that use Advice
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
-
Uses of Advice in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder that return AdviceModifier and TypeMethodDescriptionprotected Advice
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected Advice
AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected abstract Advice
AgentBuilder.Transformer.ForAdvice.Entry.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) Resolves the advice for this entry.Methods in net.bytebuddy.agent.builder with parameters of type AdviceModifier and TypeMethodDescriptionAgentBuilder.Transformer.ForAdvice.wrap
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain, Advice advice) Allows for decoration of advice for subclass implementations of this transformer. -
Uses of Advice in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as AdviceModifier and TypeFieldDescriptionprivate final Advice
Advice.Appender.advice
The advice to implement.Methods in net.bytebuddy.asm that return AdviceModifier and TypeMethodDescriptionstatic Advice
Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Advice.to
(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Advice.to
(Class<?> advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Advice.to
(TypeDescription advice) Implements advice where every matched method is advised by the given type's advisory methods.protected static Advice
Advice.to
(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory) Creates a new advice.static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice) Implements advice where every matched method is advised by the given type's advisory methods.protected static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory) Creates a new advice.static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Advice.to
(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Implements advice where every matched method is advised by the given type's advisory methods.Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(Class<?> advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription enterAdvice, TypeDescription exitAdvice) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.withAssigner
(Assigner assigner) Configures this advice to use the specified assigner.Advice.withExceptionHandler
(Advice.ExceptionHandler exceptionHandler) Configures this advice to execute the given exception handler upon a suppressed exception.Advice.withExceptionHandler
(StackManipulation exceptionHandler) Configures this advice to execute the given stack manipulation upon a suppressed exception.Advice.withExceptionPrinting()
Configures this advice to callThrowable.printStackTrace()
upon a suppressed exception.Constructors in net.bytebuddy.asm with parameters of type AdviceModifierConstructorDescriptionprotected
Appender
(Advice advice, Implementation.Target implementationTarget, ByteCodeAppender delegate) Creates a new appender for an advice component. -
Uses of Advice in net.bytebuddy.build
Methods in net.bytebuddy.build that return Advice