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.
|
Constructor and Description |
---|
LambdaMethodImplementation(JavaInstance.MethodHandle targetMethod,
JavaInstance.MethodType specializedLambdaMethod)
Creates a implementation of a lambda expression's functional method.
|
SerializationImplementation(TypeDescription targetType,
TypeDescription lambdaType,
String lambdaMethodName,
JavaInstance.MethodType lambdaMethod,
JavaInstance.MethodHandle targetMethod,
JavaInstance.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression's
writeReplace method. |
Modifier and Type | Method and Description |
---|---|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.of(Constructor<?> constructor)
Creates a method handle representation of the given constructor.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.of(Method method)
Creates a method handle representation of the given method.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.of(MethodDescription.InDefinedShape methodDescription)
Creates a method handle representation of the given method.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofGetter(Field field)
Returns a method handle for a setter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofGetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a setter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofLoaded(Object methodHandle)
Creates a method handles representation of a loaded method handle which is analyzed using a public
MethodHandles.Lookup object. |
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofLoaded(Object methodHandle,
AccessControlContext accessControlContext)
Creates a method handles representation of a loaded method handle which is analyzed using a public
MethodHandles.Lookup object. |
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofLoaded(Object methodHandle,
Object lookup)
Creates a method handles representation of a loaded method handle which is analyzed using the given lookup context.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofLoaded(Object methodHandle,
Object lookup,
AccessControlContext accessControlContext)
Creates a method handles representation of a loaded method handle which is analyzed using the given lookup context.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofSetter(Field field)
Returns a method handle for a getter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofSetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a getter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofSpecial(Method method,
Class<?> type)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.
|
static JavaInstance.MethodHandle |
JavaInstance.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.
|
Copyright © 2014–2016. All rights reserved.