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 | Field and Description |
---|---|
private Advice.WithCustomMapping |
AgentBuilder.Transformer.ForAdvice.advice
The advice to use.
|
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) |
Constructor and Description |
---|
ForAdvice(Advice.WithCustomMapping advice)
Creates a new advice transformer which applies the given advice.
|
ForAdvice(Advice.WithCustomMapping advice,
Advice.ExceptionHandler exceptionHandler,
Assigner assigner,
ClassFileLocator classFileLocator,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
java.util.List<AgentBuilder.Transformer.ForAdvice.Entry> entries)
Creates a new advice transformer.
|
Modifier and Type | Method and Description |
---|---|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bind(Advice.OffsetMapping.Factory<?> offsetMapping)
Binds an annotation to a dynamically computed value.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
Advice.OffsetMapping offsetMapping)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.Class<?> value)
Binds the supplied annotation to the supplied type constant.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.reflect.Constructor<?> constructor,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.Enum<?> value)
Binds the supplied annotation to the supplied enumeration constant.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
EnumerationDescription value)
Binds the supplied annotation to the supplied enumeration constant.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.reflect.Field field)
Binds the supplied annotation to the value of the supplied field.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
FieldDescription fieldDescription)
Binds the supplied annotation to the value of the supplied field.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.reflect.Method method,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
java.lang.Object value)
Binds the supplied annotation to a type constant of the supplied value.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
ParameterDescription parameterDescription)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
StackManipulation stackManipulation,
java.lang.reflect.Type targetType)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
StackManipulation stackManipulation,
TypeDescription.Generic targetType)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bind(java.lang.Class<T> type,
TypeDescription value)
Binds the supplied annotation to the supplied type constant.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bindProperty(java.lang.Class<T> type,
java.lang.String property)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends java.lang.annotation.Annotation,S extends java.io.Serializable> |
Advice.WithCustomMapping.bindSerialized(java.lang.Class<T> type,
S value,
java.lang.Class<? super S> targetType)
Binds the supplied annotation to the supplied fixed value.
|
<T extends java.lang.annotation.Annotation> |
Advice.WithCustomMapping.bindSerialized(java.lang.Class<T> type,
java.io.Serializable value)
Binds the supplied annotation to the supplied fixed value.
|
static Advice.WithCustomMapping |
Advice.withCustomMapping()
Allows for the configuration of custom annotations that are then bound to a dynamically computed, constant value.
|