| Package | Description |
|---|---|
| net.bytebuddy.implementation.bytecode.constant |
StackManipulations 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 |
MethodTypeConstant.of(JavaInstance.MethodType methodType)
Transforms the given method type into a stack manipulation that loads its type onto the operand stack.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaInstance.MethodType |
JavaInstance.MethodType.of(Class<?> returnType,
Class<?>... parameterType)
Returns a method type description of the given return type and parameter types.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.of(Constructor<?> constructor)
Returns a method type description of the given constructor.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.of(Method method)
Returns a method type description of the given method.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.of(MethodDescription methodDescription)
Returns a method type description of the given method.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.of(Object methodType)
Returns a method type representation of a loaded
MethodType object. |
static JavaInstance.MethodType |
JavaInstance.MethodType.of(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofConstant(Class<?> type)
Returns a method type for the given constant type.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofConstant(Object instance)
Returns a method type for the given constant.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofConstant(TypeDescription typeDescription)
Returns a method type for the given constant type.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofGetter(Field field)
Returns a method type for a getter of the given field.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofGetter(FieldDescription fieldDescription)
Returns a method type for a getter of the given field.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofSetter(Field field)
Returns a method type for a setter of the given field.
|
static JavaInstance.MethodType |
JavaInstance.MethodType.ofSetter(FieldDescription fieldDescription)
Returns a method type for a setter of the given field.
|
Copyright © 2014–2015. All rights reserved.