Uses of Interface
net.bytebuddy.utility.ConstantValue
-
Packages that use ConstantValue Package Description net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.net.bytebuddy.utility This package contains utility classes for common use within any Byte Buddy logic. -
-
Uses of ConstantValue in net.bytebuddy.asm
Methods in net.bytebuddy.asm with parameters of type ConstantValue Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping. bind(java.lang.Class<T> type, ConstantValue constant)
Binds the supplied annotation to the given Java constant.<T extends java.lang.annotation.Annotation>
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMappingMemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping. bind(java.lang.Class<T> type, ConstantValue constant)
Binds the supplied annotation to the given Java constant.Constructors in net.bytebuddy.asm with parameters of type ConstantValue Constructor Description Factory(java.lang.Class<T> annotationType, ConstantValue constant)
Creates a new factory for binding a Java constant.Factory(java.lang.Class<T> annotationType, ConstantValue value)
Creates a factory for a given constant value. -
Uses of ConstantValue in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as ConstantValue Modifier and Type Field Description private ConstantValue
InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant. constant
The Java instance to provide to the bootstrapped method.Methods in net.bytebuddy.implementation with parameters of type ConstantValue Modifier and Type Method Description Implementation.Composable
FieldAccessor.ForImplicitProperty. setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.Implementation.Composable
FieldAccessor.PropertyConfigurable. setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.static FixedValue.AssignerConfigurable
FixedValue. value(ConstantValue constant)
Returns the loaded version of the givenJavaConstant
.MethodCall
MethodCall. with(ConstantValue... constant)
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(ConstantValue... constant)
Hands the provided Java instance to the dynamically bound method.Constructors in net.bytebuddy.implementation with parameters of type ConstantValue Constructor Description ForJavaConstant(ConstantValue constant)
Creates a new argument provider for the given Java instance. -
Uses of ConstantValue in net.bytebuddy.utility
Subinterfaces of ConstantValue in net.bytebuddy.utility Modifier and Type Interface Description interface
JavaConstant
Represents a constant-pool constant within a Java class file.Classes in net.bytebuddy.utility that implement ConstantValue Modifier and Type Class Description static class
ConstantValue.Simple
A simple representation of a constant value.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.static class
JavaConstant.Simple<T>
Represents a simple Java constant, either a primitive constant, aString
or aClass
.protected static class
JavaConstant.Simple.OfTrivialValue<S>
Represents a trivial constant value that represents itself.protected static class
JavaConstant.Simple.OfTrivialValue.ForDouble
protected static class
JavaConstant.Simple.OfTrivialValue.ForFloat
protected static class
JavaConstant.Simple.OfTrivialValue.ForInteger
protected static class
JavaConstant.Simple.OfTrivialValue.ForLong
protected static class
JavaConstant.Simple.OfTrivialValue.ForString
protected static class
JavaConstant.Simple.OfTypeDescription
Represents a type constant.Methods in net.bytebuddy.utility that return ConstantValue Modifier and Type Method Description static ConstantValue
ConstantValue.Simple. wrap(java.lang.Object value)
Returns a constant value for the supplied constant value.static ConstantValue
ConstantValue.Simple. wrapOrNull(java.lang.Object value)
Returns a constant value for the supplied constant value.
-