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) |
Constructor and Description |
---|
ForAdvice(Advice.WithCustomMapping advice)
Creates a new advice transformer which applies the given advice.
|
ForAdvice(Advice.WithCustomMapping advice,
StackManipulation exceptionHandler,
Assigner assigner,
ClassFileLocator classFileLocator,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
List<AgentBuilder.Transformer.ForAdvice.Entry> entries)
Creates a new advice transformer.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
Advice.DynamicValue<T> dynamicValue)
Binds an annotation type to dynamically computed value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
Constructor<?> constructor,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
Field field)
Binds the supplied annotation to the value of the supplied field.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
FieldDescription fieldDescription)
Binds the supplied annotation to the value of the supplied field.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
Method method,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
Object value)
Binds the supplied annotation to a type constant of the supplied value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<? extends T> type,
ParameterDescription parameterDescription)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindProperty(Class<? extends T> type,
String property)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends Annotation,S extends Serializable> |
Advice.WithCustomMapping.bindSerialized(Class<? extends T> type,
S value,
Class<? super S> instanceType)
Binds the supplied annotation to the supplied fixed value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindSerialized(Class<? extends T> type,
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.
|
Copyright © 2014–2017. All rights reserved.