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.constant |
StackManipulation s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
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,
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 |
---|---|
org.objectweb.asm.Handle |
JavaConstantValue.Visitor.onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents a
JavaConstant.MethodHandle . |
Modifier and Type | Method and Description |
---|---|
JavaConstant.MethodHandle |
JavaConstant.Dynamic.getBootstrap()
Returns a handle representation of the bootstrap method.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(Constructor<?> constructor)
Creates a method handle representation of the given constructor.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(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(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(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(Object methodHandle,
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(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(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 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.
|
Modifier and Type | Method and Description |
---|---|
T |
JavaConstant.Visitor.onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents a
JavaConstant.MethodHandle . |
JavaConstant |
JavaConstant.Visitor.NoOp.onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents a
JavaConstant.MethodHandle . |
Constructor and Description |
---|
Dynamic(String name,
TypeDescription typeDescription,
JavaConstant.MethodHandle bootstrap,
List<JavaConstant> arguments)
Creates a dynamic resolved constant.
|
Copyright © 2014–2021. All rights reserved.