Uses of Interface
net.bytebuddy.utility.JavaConstant
Packages that use JavaConstant
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
Contains descriptions of Java types and packages.
The implementation package contains any logic for intercepting method calls.
StackManipulations in this package are responsible for
creating compile-time constants and pushing them onto the operand stack.StackManipulations of this package are responsible for
accessing type or method members, i.e.This package contains utility classes for common use within any Byte Buddy logic.
-
Uses of JavaConstant in net.bytebuddy.asm
Fields in net.bytebuddy.asm with type parameters of type JavaConstantModifier and TypeFieldDescriptionprivate final List<? extends JavaConstant> Advice.OffsetMapping.ForStackManipulation.OfDynamicInvocation.argumentsThe arguments to the bootstrap method.private final List<? extends JavaConstant> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDynamicInvocation.argumentsThe constants to provide to the bootstrap method.Methods in net.bytebuddy.asm that return types with arguments of type JavaConstantModifier and TypeMethodDescriptionMemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved.make(TypeDescription receiver, ByteCodeElement.Member original, JavaConstant.MethodHandle methodHandle) Returns the constant values to supply to the bootstrap method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved.make(TypeDescription receiver, ByteCodeElement.Member original, JavaConstant.MethodHandle methodHandle) Returns the constant values to supply to the bootstrap method.Advice.BootstrapArgumentResolver.ForDefaultValues.resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.Advice.BootstrapArgumentResolver.resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.Methods in net.bytebuddy.asm with parameters of type JavaConstantModifier and TypeMethodDescription<T extends Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping.bind(Class<T> type, JavaConstant constant) Binds the supplied annotation to the given Java constant.Constructor parameters in net.bytebuddy.asm with type arguments of type JavaConstantModifierConstructorDescriptionOfDynamicInvocation(Class<T> annotationType, MethodDescription.InDefinedShape bootstrapMethod, List<? extends JavaConstant> arguments) Creates a new factory for a dynamic invocation.OfDynamicInvocation(Class<T> annotationType, MethodDescription.InDefinedShape bootstrapMethod, List<? extends JavaConstant> arguments) Creates a factory for an offset mapping that assigns the result of a dynamic method invocation. -
Uses of JavaConstant in net.bytebuddy.description.type
Method parameters in net.bytebuddy.description.type with type arguments of type JavaConstantModifier and TypeMethodDescriptionstatic TypeListTypeList.Explicit.of(List<? extends JavaConstant> constants) Returns a list of types of the supplied Java constants. -
Uses of JavaConstant in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation with type parameters of type JavaConstantModifier and TypeFieldDescriptionprotected final List<? extends JavaConstant> InvokeDynamic.argumentsThe arguments that are provided to the bootstrap method.Methods in net.bytebuddy.implementation with parameters of type JavaConstantModifier and TypeMethodDescriptionFieldAccessor.ForImplicitProperty.setsValue(JavaConstant constant) Defines a setter of a given constant value for the described field.FieldAccessor.PropertyConfigurable.setsValue(JavaConstant constant) Defines a setter of a given constant value for the described field.FixedValue.value(JavaConstant constant) Returns the loaded version of the givenJavaConstant.MethodCall.with(JavaConstant... 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.AbstractDelegator.withInstance(JavaConstant... javaConstant) Hands the provided Java instance to the dynamically bound method.InvokeDynamic.withInstance(JavaConstant... constant) Hands the provided Java instance to the dynamically bound method.Constructor parameters in net.bytebuddy.implementation with type arguments of type JavaConstantModifierConstructorDescriptionprotectedAbstractDelegator(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing) Creates a new abstract delegator for a dynamic method invocation.protectedInvokeDynamic(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing) Creates a new invoke dynamic implementation.protectedOfArgument(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, int index) Creates a new invoke dynamic instance with an implicit field type for the provided value.protectedOfField(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, String fieldName, FieldLocator.Factory fieldLocatorFactory) Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.protectedOfInstance(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, Object value) Creates a new invoke dynamic instance with an implicit field type for the provided value.protectedWithImplicitArguments(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing) Creates a new dynamic method invocation with implicit arguments.protectedWithImplicitTarget(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing) Creates a new dynamic method invocation with implicit arguments and an implicit invocation target.protectedWithImplicitType(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing) Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type. -
Uses of JavaConstant in net.bytebuddy.implementation.bytecode.constant
Fields in net.bytebuddy.implementation.bytecode.constant declared as JavaConstantModifier and TypeFieldDescriptionprivate final JavaConstantJavaConstantValue.constantThe instance to load onto the operand stack.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type JavaConstantModifierConstructorDescriptionJavaConstantValue(JavaConstant constant) Creates a constant pool value representing aJavaConstant. -
Uses of JavaConstant in net.bytebuddy.implementation.bytecode.member
Fields in net.bytebuddy.implementation.bytecode.member with type parameters of type JavaConstantModifier and TypeFieldDescriptionprivate final List<? extends JavaConstant> MethodInvocation.DynamicInvocation.argumentsThe list of arguments to be handed over to the bootstrap method. -
Uses of JavaConstant in net.bytebuddy.utility
Classes in net.bytebuddy.utility that implement JavaConstantModifier and TypeClassDescriptionstatic classRepresents a dynamically resolved constant pool entry of a class file.static classRepresents ajava.lang.invoke.MethodHandleobject.static classRepresents ajava.lang.invoke.MethodTypeobject.static classprotected static classRepresents a trivial constant value that represents itself.protected static classprotected static classprotected static classprotected static classprotected static classprotected static classRepresents a type constant.Fields in net.bytebuddy.utility with type parameters of type JavaConstantModifier and TypeFieldDescriptionprivate final List<JavaConstant> JavaConstant.Dynamic.argumentsA list of the arguments to the dynamic constant.Methods in net.bytebuddy.utility that return JavaConstantModifier and TypeMethodDescriptionstatic JavaConstantJavaConstant.Simple.of(TypeDescription typeDescription) Returns a Java constant representation for aTypeDescription.static JavaConstantJavaConstant.Dynamic.ofArrayVarHandle(Class<?> type) Resolves a var handle constant for an array.static JavaConstantJavaConstant.Dynamic.ofArrayVarHandle(TypeDescription typeDescription) Resolves a var handle constant for an array.static JavaConstantJavaConstant.Simple.ofDescription(Object value, ClassLoader classLoader) Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Simple.ofDescription(Object value, ClassFileLocator classFileLocator) Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Simple.ofDescription(Object value, TypePool typePool) Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Dynamic.ofEnumeration(Enum<?> enumeration) Returns aEnumvalue constant.static JavaConstantJavaConstant.Dynamic.ofEnumeration(EnumerationDescription enumerationDescription) Returns aEnumvalue constant.static JavaConstantResolves a loaded Java value to a Java constant representation.protected static JavaConstantJavaConstant.Simple.ofLoadedOrNull(Object value) Resolves a loaded Java value to a Java constant representation.static JavaConstantJavaConstant.Dynamic.ofPrimitiveType(Class<?> type) Returns aClassconstant for a primitive type.static JavaConstantJavaConstant.Dynamic.ofPrimitiveType(TypeDescription typeDescription) Returns aClassconstant for a primitive type.static JavaConstantJavaConstant.Dynamic.ofVarHandle(Field field) Resolves a var handle constant for a field.static JavaConstantJavaConstant.Dynamic.ofVarHandle(FieldDescription.InDefinedShape fieldDescription) Resolves a var handle constant for a field.JavaConstant.Visitor.NoOp.onDynamic(JavaConstant.Dynamic constant) Invoked on aJavaConstant.Dynamicconstant.JavaConstant.Visitor.NoOp.onMethodHandle(JavaConstant.MethodHandle constant) Invoked on a constant that represents aJavaConstant.MethodHandle.JavaConstant.Visitor.NoOp.onMethodType(JavaConstant.MethodType constant) Invoked on a constant that represents aJavaConstant.MethodType.JavaConstant.Visitor.NoOp.onType(JavaConstant.Simple<TypeDescription> constant) Invoked on aJavaConstant.Simpleconstant that represents aTypeDescription.JavaConstant.Visitor.NoOp.onValue(JavaConstant.Simple<?> constant) Invoked on aJavaConstant.Simpleconstant that represents itself.Resolves thisJavaConstant.Dynamicconstant to resolve the returned instance to the supplied type.JavaConstant.Dynamic.withType(TypeDescription typeDescription) Resolves thisJavaConstant.Dynamicconstant to resolve the returned instance to the supplied type.static JavaConstantWraps a value representing a loaded or unloaded constant asJavaConstantinstance.Methods in net.bytebuddy.utility that return types with arguments of type JavaConstantModifier and TypeMethodDescriptionJavaConstant.Dynamic.getArguments()Returns a list of the arguments to the dynamic constant.static List<JavaConstant> Wraps a list of either loaded or unloaded constant representations asJavaConstantinstances.Constructor parameters in net.bytebuddy.utility with type arguments of type JavaConstantModifierConstructorDescriptionprotectedDynamic(String name, TypeDescription typeDescription, JavaConstant.MethodHandle bootstrap, List<JavaConstant> arguments) Creates a dynamic resolved constant.