Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Advice |
AgentBuilder.Transformer.ForAdvice.Entry.resolve(Advice.WithCustomMapping advice,
TypePool typePool,
ClassFileLocator classFileLocator)
Resolves the advice for this entry.
|
protected Advice |
AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice.resolve(Advice.WithCustomMapping advice,
TypePool typePool,
ClassFileLocator classFileLocator) |
protected Advice |
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice.resolve(Advice.WithCustomMapping advice,
TypePool typePool,
ClassFileLocator classFileLocator) |
Modifier and Type | Method and Description |
---|---|
static Advice |
Advice.to(Class<?> advice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
Advice.WithCustomMapping.to(Class<?> advice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
static Advice |
Advice.to(Class<?> enterAdvice,
Class<?> exitAdvice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
Advice.WithCustomMapping.to(Class<?> enterAdvice,
Class<?> exitAdvice)
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.
|
Advice |
Advice.WithCustomMapping.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.
|
Advice |
Advice.WithCustomMapping.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 delegator)
Creates a new advice.
|
static Advice |
Advice.to(TypeDescription advice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
Advice.WithCustomMapping.to(TypeDescription advice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
static Advice |
Advice.to(TypeDescription enterAdvice,
TypeDescription exitAdvice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
Advice.WithCustomMapping.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 delegator)
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.
|
Advice |
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 |
Advice.withAssigner(Assigner assigner)
Configures this advice to use the specified assigner.
|
Advice |
Advice.withExceptionHandler(Advice.ExceptionHandler exceptionHandler)
Configures this advice to execute the given exception handler upon a suppressed exception.
|
Advice |
Advice.withExceptionHandler(StackManipulation exceptionHandler)
Configures this advice to execute the given stack manipulation upon a suppressed exception.
|
Advice |
Advice.withExceptionPrinting()
Configures this advice to call
Throwable.printStackTrace() upon a suppressed exception. |
Constructor and Description |
---|
Appender(Advice advice,
Implementation.Target implementationTarget,
ByteCodeAppender delegate)
Creates a new appender for an advice component.
|
Copyright © 2014–2020. All rights reserved.