Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
MethodHandleConstant.of(JavaInstance.MethodHandle methodHandle)
Creates stack manipulation for loading the provided method handle onto the operand stack.
|
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 methodDescription)
Creates a method handle representation of the given method.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.of(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.of(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.of(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.of(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.ofGetter(Field field)
Returns a method handle for a setter of the given field.
|
static JavaInstance.MethodHandle |
JavaInstance.MethodHandle.ofGetter(FieldDescription fieldDescription)
Returns a method handle for a setter of the given field.
|
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 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 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–2015. All rights reserved.