Uses of Interface
net.bytebuddy.utility.JavaConstant
-
Packages that use JavaConstant 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. -
-
Uses of JavaConstant in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as JavaConstant Modifier and Type Field Description private JavaConstant
InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant. javaConstant
The Java instance to provide to the bootstrapped method.Methods in net.bytebuddy.implementation with parameters of type JavaConstant Modifier and Type Method Description Implementation.Composable
FieldAccessor.ForImplicitProperty. setsValue(JavaConstant constant)
Defines a setter of a given constant value for the described field.Implementation.Composable
FieldAccessor.PropertyConfigurable. 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 givenJavaConstant
.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.AbstractDelegator. withInstance(JavaConstant... javaConstant)
Hands the provided Java instance to the dynamically bound method.InvokeDynamic
InvokeDynamic. withInstance(JavaConstant... javaConstant)
Hands the provided Java instance to the dynamically bound method.Constructors in net.bytebuddy.implementation with parameters of type JavaConstant Constructor Description ForJavaConstant(JavaConstant javaConstant)
Creates a new argument provider for the given Java instance. -
Uses of JavaConstant in net.bytebuddy.implementation.bytecode.constant
Fields in net.bytebuddy.implementation.bytecode.constant declared as JavaConstant Modifier and Type Field Description private JavaConstant
JavaConstantValue. javaConstant
The instance to load onto the operand stack.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type JavaConstant Constructor Description JavaConstantValue(JavaConstant javaConstant)
Creates a constant pool value representing aJavaConstant
. -
Uses of JavaConstant in net.bytebuddy.utility
Classes in net.bytebuddy.utility that implement JavaConstant Modifier and Type Class Description static class
JavaConstant.Dynamic
Represents a dynamically resolved constant pool entry of a class file.static class
JavaConstant.MethodHandle
Represents ajava.lang.invoke.MethodHandle
object.static class
JavaConstant.MethodType
Represents ajava.lang.invoke.MethodType
object.Methods in net.bytebuddy.utility that return JavaConstant Modifier and Type Method Description static JavaConstant
JavaConstant.Dynamic. ofArrayVarHandle(java.lang.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(java.lang.Enum<?> enumeration)
Returns aEnum
value constant.static JavaConstant
JavaConstant.Dynamic. ofEnumeration(EnumerationDescription enumerationDescription)
Returns aEnum
value constant.static JavaConstant
JavaConstant.Dynamic. ofPrimitiveType(java.lang.Class<?> type)
Returns aClass
constant for a primitive type.static JavaConstant
JavaConstant.Dynamic. ofPrimitiveType(TypeDescription typeDescription)
Returns aClass
constant for a primitive type.static JavaConstant
JavaConstant.Dynamic. ofVarHandle(java.lang.reflect.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(java.lang.Class<?> type)
Resolves thisJavaConstant.Dynamic
constant to resolve the returned instance to the supplied type.JavaConstant
JavaConstant.Dynamic. withType(TypeDescription typeDescription)
Resolves thisJavaConstant.Dynamic
constant to resolve the returned instance to the supplied type.
-