Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Field and Description |
---|---|
private JavaConstant.MethodHandle |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.targetMethod
The handle of the target method of the lambda expression.
|
private JavaConstant.MethodHandle |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation.targetMethod
A handle that references the lambda expressions invocation target.
|
Constructor and Description |
---|
LambdaMethodImplementation(JavaConstant.MethodHandle targetMethod,
JavaConstant.MethodType specializedLambdaMethod)
Creates a implementation of a lambda expression's functional method.
|
SerializationImplementation(TypeDescription targetType,
TypeDescription lambdaType,
java.lang.String lambdaMethodName,
JavaConstant.MethodType lambdaMethod,
JavaConstant.MethodHandle targetMethod,
JavaConstant.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression's
writeReplace method. |
Modifier and Type | Method and Description |
---|---|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(java.lang.reflect.Constructor<?> constructor)
Creates a method handle representation of the given constructor.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(java.lang.reflect.Method method)
Creates a method handle representation of the given method.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(MethodDescription.InDefinedShape methodDescription)
Creates a method handle representation of the given method.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofGetter(java.lang.reflect.Field field)
Returns a method handle for a setter of the given field.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofGetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a setter of the given field.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofLoaded(java.lang.Object methodHandle)
Creates a method handles representation of a loaded method handle which is analyzed using a public
MethodHandles.Lookup object. |
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofLoaded(java.lang.Object methodHandle,
java.lang.Object lookup)
Creates a method handles representation of a loaded method handle which is analyzed using the given lookup context.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSetter(java.lang.reflect.Field field)
Returns a method handle for a getter of the given field.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a getter of the given field.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSpecial(java.lang.reflect.Method method,
java.lang.Class<?> type)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSpecial(MethodDescription.InDefinedShape methodDescription,
TypeDescription typeDescription)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.
|