Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.implementation.bytecode.member |
StackManipulation s of this package are responsible for
accessing type or method members, i.e. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Field and Description |
---|---|
private JavaConstant.MethodType |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation.lambdaMethod
The method type of the lambda expression's functional method.
|
private JavaConstant.MethodType |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation.lambdaMethod
The actual type of the lambda expression's functional method.
|
private JavaConstant.MethodType |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.specializedLambdaMethod
The specialized type of the lambda method.
|
private JavaConstant.MethodType |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.specializedLambdaMethod
The specialized type of the lambda method.
|
private JavaConstant.MethodType |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation.specializedMethod
The specialized method type of the lambda expression's functional method.
|
Constructor and Description |
---|
Appender(MethodDescription targetMethod,
JavaConstant.MethodType specializedLambdaMethod,
java.util.List<FieldDescription.InDefinedShape> declaredFields)
Creates an appender of a lambda expression's functional method.
|
BridgeMethodImplementation(java.lang.String lambdaMethodName,
JavaConstant.MethodType lambdaMethod)
Creates a new bridge method implementation for a lambda expression.
|
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 | Field and Description |
---|---|
private JavaConstant.MethodType |
HandleInvocation.methodType
The method type of the invoked handle.
|
Constructor and Description |
---|
HandleInvocation(JavaConstant.MethodType methodType)
Creates a public invocation of a method handle.
|
Modifier and Type | Method and Description |
---|---|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(java.lang.Class<?> returnType,
java.lang.Class<?>... parameterType)
Returns a method type description of the given return type and parameter types.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(java.lang.reflect.Constructor<?> constructor)
Returns a method type description of the given constructor.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(java.lang.reflect.Method method)
Returns a method type description of the given method.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(MethodDescription methodDescription)
Returns a method type description of the given method.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(TypeDescription returnType,
java.util.List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofConstant(java.lang.Class<?> type)
Returns a method type for the given constant type.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofConstant(java.lang.Object instance)
Returns a method type for the given constant.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofConstant(TypeDescription typeDescription)
Returns a method type for the given constant type.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofGetter(java.lang.reflect.Field field)
Returns a method type for a getter of the given field.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofGetter(FieldDescription fieldDescription)
Returns a method type for a getter of the given field.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofLoaded(java.lang.Object methodType)
Returns a method type representation of a loaded
MethodType object. |
static JavaConstant.MethodType |
JavaConstant.MethodType.ofSetter(java.lang.reflect.Field field)
Returns a method type for a setter of the given field.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.ofSetter(FieldDescription fieldDescription)
Returns a method type for a setter of the given field.
|