Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
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 |
---|---|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(JavaConstant constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(JavaConstant constant)
Defines a setter of a given constant value for the described field.
|
static FixedValue.AssignerConfigurable |
FixedValue.value(JavaConstant fixedValue)
Returns the loaded version of the given
JavaConstant . |
MethodCall |
MethodCall.with(JavaConstant... javaConstant)
Defines the given Java instances to be provided as arguments to the invoked method where the given
instances are stored in the generated class's constant pool.
|
InvokeDynamic |
InvokeDynamic.withInstance(JavaConstant... javaConstant)
Hands the provided Java instance to the dynamically bound method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withInstance(JavaConstant... javaConstant)
Hands the provided Java instance to the dynamically bound method.
|
Constructor and Description |
---|
ForJavaConstant(JavaConstant javaConstant)
Creates a new argument provider for the given Java instance.
|
Constructor and Description |
---|
JavaConstantValue(JavaConstant javaConstant)
Creates a constant pool value representing a
JavaConstant . |
Modifier and Type | Class and Description |
---|---|
static class |
JavaConstant.Dynamic
Represents a dynamically resolved constant pool entry of a class file.
|
static class |
JavaConstant.MethodHandle
Represents a
java.lang.invoke.MethodHandle object. |
static class |
JavaConstant.MethodType
Represents a
java.lang.invoke.MethodType object. |
Modifier and Type | Method and Description |
---|---|
static JavaConstant |
JavaConstant.Dynamic.ofArrayVarHandle(Class<?> type)
Resolves a var handle constant for an array.
|
static JavaConstant |
JavaConstant.Dynamic.ofArrayVarHandle(TypeDescription typeDescription)
Resolves a var handle constant for an array.
|
static JavaConstant |
JavaConstant.Dynamic.ofEnumeration(Enum<?> enumeration)
Returns a
Enum value constant. |
static JavaConstant |
JavaConstant.Dynamic.ofEnumeration(EnumerationDescription enumerationDescription)
Returns a
Enum value constant. |
static JavaConstant |
JavaConstant.Dynamic.ofPrimitiveType(Class<?> type)
Returns a
Class constant for a primitive type. |
static JavaConstant |
JavaConstant.Dynamic.ofPrimitiveType(TypeDescription typeDescription)
Returns a
Class constant for a primitive type. |
static JavaConstant |
JavaConstant.Dynamic.ofVarHandle(Field field)
Resolves a var handle constant for a field.
|
static JavaConstant |
JavaConstant.Dynamic.ofVarHandle(FieldDescription.InDefinedShape fieldDescription)
Resolves a var handle constant for a field.
|
JavaConstant |
JavaConstant.Dynamic.withType(Class<?> type)
Resolves this
JavaConstant.Dynamic constant to resolve the returned instance to the supplied type. |
JavaConstant |
JavaConstant.Dynamic.withType(TypeDescription typeDescription)
Resolves this
JavaConstant.Dynamic constant to resolve the returned instance to the supplied type. |
Copyright © 2014–2020. All rights reserved.