| 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.
|
| net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
| Modifier and Type | Method and Description |
|---|---|
protected static ByteCodeAppender |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.of(MethodDescription targetMethod,
JavaConstant.MethodType specializedLambdaMethod,
List<FieldDescription.InDefinedShape> declaredFields,
JavaConstant.MethodHandle.HandleType handleType,
TypeDescription targetType)
Resolves an appropriate appender for this lambda expression.
|
| Constructor and Description |
|---|
ForDynamicConstant(String name,
TypeDescription typeDescription,
JavaConstant.MethodHandle.HandleType bootstrapType,
TypeDescription bootstrapOwner,
String bootstrapName,
TypeDescription bootstrapReturnType,
List<? extends TypeDescription> bootstrapParameterTypes,
List<JavaConstant> arguments,
boolean invokedynamic)
Creates an offset mapping for a dynamic constant.
|
ForDynamicConstant(String name,
TypeDescription typeDescription,
JavaConstant.MethodHandle.HandleType bootstrapType,
TypeDescription bootstrapOwner,
String bootstrapName,
TypeDescription bootstrapReturnType,
List<? extends TypeDescription> bootstrapParameterTypes,
List<JavaConstant> arguments,
boolean invokedynamic) |
ForHandle(JavaConstant.MethodHandle.HandleType type,
TypeDescription owner,
String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates an offset mapping for a method handle.
|
ForHandle(JavaConstant.MethodHandle.HandleType type,
TypeDescription owner,
String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a new offset mapping for a method handle.
|
| Modifier and Type | Method and Description |
|---|---|
JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.getHandleType()
Returns the handle type represented by this instance.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.of(int identifier)
Extracts a handle type for the given identifier.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.of(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofGetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a getter of the given field.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofSetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a setter of the given field.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofSpecial(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method via invokespecial.
|
static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaConstant.MethodHandle.HandleType[] |
JavaConstant.MethodHandle.HandleType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
MethodHandle(JavaConstant.MethodHandle.HandleType handleType,
TypeDescription ownerType,
String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a method handle representation.
|
Copyright © 2014–2025. All rights reserved.