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.
-
Uses of Advice in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder that return AdviceModifier and TypeMethodDescriptionprotected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice.resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice.resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected abstract AdviceAgentBuilder.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 AdviceAdvice.Appender.adviceThe advice to implement.Methods in net.bytebuddy.asm that return AdviceModifier and TypeMethodDescriptionstatic AdviceImplements advice where every matched method is advised by the given type's advisory methods.static AdviceImplements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.to(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.to(Class<?> advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.to(TypeDescription advice) Implements advice where every matched method is advised by the given type's advisory methods.protected static AdviceAdvice.to(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory) Creates a new advice.static AdviceAdvice.to(TypeDescription enterAdvice, TypeDescription exitAdvice) Implements advice where every matched method is advised by the given type's advisory methods.protected static AdviceAdvice.to(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory) Creates a new advice.static AdviceAdvice.to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.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 AdviceModifierConstructorDescriptionprotectedAppender(Advice advice, Implementation.Target implementationTarget, ByteCodeAppender delegate) Creates a new appender for an advice component.