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 AgentBuilder.Transformer.ForAdvice |
AgentBuilder.Transformer.ForAdvice.make(Advice.WithCustomMapping advice,
Advice.ExceptionHandler exceptionHandler,
Assigner assigner,
ClassFileLocator classFileLocator,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
List<AgentBuilder.Transformer.ForAdvice.Entry> entries)
Creates an advice transformer.
|
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,
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 Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Advice.OffsetMapping offsetMapping)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Class<?> value)
Binds the supplied annotation to the supplied type constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
ConstantValue constant)
Binds the supplied annotation to the given Java constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Constructor<?> constructor,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Enum<?> value)
Binds the supplied annotation to the supplied enumeration constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
EnumerationDescription value)
Binds the supplied annotation to the supplied enumeration constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Field field)
Binds the supplied annotation to the value of the supplied field.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
FieldDescription fieldDescription)
Binds the supplied annotation to the value of the supplied field.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
JavaConstant constant)
Binds the supplied annotation to the given Java constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Method method,
int index)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
Object value)
Binds the supplied annotation to a type constant of the supplied value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
ParameterDescription parameterDescription)
Binds the supplied annotation to the supplied parameter's argument.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
StackManipulation stackManipulation,
Type targetType)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
StackManipulation stackManipulation,
TypeDescription.Generic targetType)
Binds the supplied annotation to the annotation's property of the specified name.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
TypeDescription value)
Binds the supplied annotation to the supplied type constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
Constructor<?> bootstrapMethod,
List<?> constants)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
Constructor<?> bootstrapMethod,
Object... constant)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
MethodDescription.InDefinedShape bootstrapMethod,
List<?> constants)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
MethodDescription.InDefinedShape bootstrapMethod,
Object... constant)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
Method bootstrapMethod,
List<?> constants)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindDynamic(Class<T> type,
Method bootstrapMethod,
Object... constant)
Binds the supplied annotation to a dynamically bootstrapped value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Constructor<?> constructor,
Class<?> functionalInterface)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Constructor<?> constructor,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Method method,
Class<?> functionalInterface)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Method method,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindProperty(Class<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<T> type,
S value,
Class<? super S> targetType)
Binds the supplied annotation to the supplied fixed value.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindSerialized(Class<T> type,
Serializable value)
Binds the supplied annotation to the supplied fixed value.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(Constructor<?> constructor)
Defines the supplied constructor as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(Constructor<?> constructor,
Advice.BootstrapArgumentResolver.Factory resolverFactory)
Defines the supplied constructor as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(Method method)
Defines the supplied method as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(Method method,
Advice.BootstrapArgumentResolver.Factory resolver)
Defines the supplied method as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(MethodDescription.InDefinedShape bootstrap)
Defines the supplied method or constructor as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.bootstrap(MethodDescription.InDefinedShape bootstrap,
Advice.BootstrapArgumentResolver.Factory resolverFactory)
Defines the supplied method or constructor as a dynamic invocation bootstrap target for delegating advice methods.
|
Advice.WithCustomMapping |
Advice.WithCustomMapping.with(Advice.PostProcessor.Factory postProcessorFactory)
Adds the supplied post processor factory for advice method post processing.
|
static Advice.WithCustomMapping |
Advice.withCustomMapping()
Allows for the configuration of custom annotations that are then bound to a dynamically computed, constant value.
|
Copyright © 2014–2024. All rights reserved.