Uses of Interface
net.bytebuddy.utility.JavaConstant
-
Packages that use JavaConstant Package Description net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.description.type Contains descriptions of Java types and packages.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.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.implementation.bytecode.member StackManipulations of this package are responsible for accessing type or method members, i.e.net.bytebuddy.utility 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 JavaConstant Modifier and Type Field Description private java.util.List<JavaConstant>Advice.OffsetMapping.ForDynamicConstant. argumentsThe constant arguments that are provided to the boostrap method.private java.util.List<? extends JavaConstant>Advice.OffsetMapping.ForStackManipulation.OfDynamicInvocation. argumentsThe arguments to the bootstrap method.private java.util.List<JavaConstant>MemberSubstitution.Replacement.Binding.ForDynamicInvocation. argumentsThe constant arguments supplied to the bootstrap method.private java.util.List<JavaConstant>MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant. argumentsThe constant arguments to the bootstrap method.private java.util.List<? extends JavaConstant>MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDynamicInvocation. argumentsThe constants to provide to the bootstrap method.private java.util.List<? extends JavaConstant>MemberSubstitution.Target.ForDynamicInvocation. argumentsThe constant arguments that are provided to the invokedynamic instruction.private ElementMatcher.Junction<? super java.util.List<JavaConstant>>MemberSubstitution.Replacement.ForDynamicInvocation. argumentsMatcherA matcher for an invokedynamic instruction's constant arguments.private ElementMatcher.Junction<? super java.util.List<JavaConstant>>MemberSubstitution.Replacement.ForDynamicInvocation.Factory. argumentsMatcherA matcher for an invokedynamic instruction's constant arguments.private ElementMatcher.Junction<? super java.util.List<? extends JavaConstant>>MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation. argumentsMatcherA matcher for an invokedynamic instruction's constant arguments.Methods in net.bytebuddy.asm that return types with arguments of type JavaConstant Modifier and Type Method Description java.util.List<? extends JavaConstant>MemberSubstitution.Target.ForDynamicInvocation. getArguments()Returns the constant arguments that are provided to the invokedynamic instruction.java.util.List<JavaConstant>MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved. make(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle)Returns the constant values to supply to the bootstrap method.java.util.List<JavaConstant>MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved. make(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle)Returns the constant values to supply to the bootstrap method.java.util.List<JavaConstant>Advice.BootstrapArgumentResolver.ForDefaultValues. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)Resolves the constants that are provided as arguments to the bootstrap methods.java.util.List<JavaConstant>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 JavaConstant Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping. bind(java.lang.Class<T> type, JavaConstant constant)Binds the supplied annotation to the given Java constant.Method parameters in net.bytebuddy.asm with type arguments of type JavaConstant Modifier and Type Method Description MemberSubstitution.Replacement.BindingMemberSubstitution.Replacement. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> constants)Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.BindingMemberSubstitution.Replacement.ForDynamicInvocation. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> constants)Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.BindingMemberSubstitution.Replacement.ForElementMatchers. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> constants)Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.BindingMemberSubstitution.Replacement.ForFirstBinding. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> constants)Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.BindingMemberSubstitution.Replacement.NoOp. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> constants)Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocationMemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation. withArguments(ElementMatcher<? super java.util.List<? extends JavaConstant>> argumentsMatcher)Reduces matched invokedynamic instructions to such instructions that is provided with constant arguments which are matched by the supplied matcher.Constructor parameters in net.bytebuddy.asm with type arguments of type JavaConstant Constructor Description ForDynamicInvocation(JavaConstant.MethodType methodType, java.lang.String name, java.util.List<JavaConstant> arguments, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution)Creates a resolved binding for an invokedynamic expression.ForDynamicInvocation(JavaConstant.MethodType methodType, java.lang.String name, java.util.List<? extends JavaConstant> arguments)Creates a new target for an invokedynamic instruction.OfDynamicInvocation(java.lang.Class<T> annotationType, MethodDescription.InDefinedShape bootstrapMethod, java.util.List<? extends JavaConstant> arguments)Creates a new factory for a dynamic invocation.OfDynamicInvocation(java.lang.Class<T> annotationType, MethodDescription.InDefinedShape bootstrapMethod, java.util.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 JavaConstant Modifier and Type Method Description static TypeListTypeList.Explicit. of(java.util.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 JavaConstant Modifier and Type Field Description protected java.util.List<? extends JavaConstant>InvokeDynamic. argumentsThe arguments that are provided to the bootstrap method.Methods in net.bytebuddy.implementation with parameters of type JavaConstant Modifier and Type Method Description Implementation.ComposableFieldAccessor.ForImplicitProperty. setsValue(JavaConstant constant)Defines a setter of a given constant value for the described field.Implementation.ComposableFieldAccessor.PropertyConfigurable. setsValue(JavaConstant constant)Defines a setter of a given constant value for the described field.static FixedValue.AssignerConfigurableFixedValue. value(JavaConstant constant)Returns the loaded version of the givenJavaConstant.MethodCallMethodCall. 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.InvokeDynamicInvokeDynamic.AbstractDelegator. withInstance(JavaConstant... javaConstant)Hands the provided Java instance to the dynamically bound method.InvokeDynamicInvokeDynamic. withInstance(JavaConstant... constant)Hands the provided Java instance to the dynamically bound method.Constructor parameters in net.bytebuddy.implementation with type arguments of type JavaConstant Constructor Description AbstractDelegator(MethodDescription.InDefinedShape bootstrap, java.util.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.InvokeDynamic(MethodDescription.InDefinedShape bootstrap, java.util.List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing)Creates a new invoke dynamic implementation.OfArgument(MethodDescription.InDefinedShape bootstrap, java.util.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.OfField(MethodDescription.InDefinedShape bootstrap, java.util.List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, java.lang.String fieldName, FieldLocator.Factory fieldLocatorFactory)Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.OfInstance(MethodDescription.InDefinedShape bootstrap, java.util.List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, java.lang.Object value)Creates a new invoke dynamic instance with an implicit field type for the provided value.WithImplicitArguments(MethodDescription.InDefinedShape bootstrap, java.util.List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing)Creates a new dynamic method invocation with implicit arguments.WithImplicitTarget(MethodDescription.InDefinedShape bootstrap, java.util.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.WithImplicitType(MethodDescription.InDefinedShape bootstrap, java.util.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 JavaConstant Modifier and Type Field Description private JavaConstantJavaConstantValue. constantThe instance to load onto the operand stack.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type JavaConstant Constructor Description JavaConstantValue(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 JavaConstant Modifier and Type Field Description private java.util.List<? extends JavaConstant>Invokedynamic. argumentsThe constant arguments to the bootstrap method.Constructor parameters in net.bytebuddy.implementation.bytecode.member with type arguments of type JavaConstant Constructor Description Invokedynamic(java.lang.String name, JavaConstant.MethodType type, JavaConstant.MethodHandle bootstrap, java.util.List<? extends JavaConstant> arguments)Creates a stack manipulation for a bootstrap method. -
Uses of JavaConstant in net.bytebuddy.utility
Classes in net.bytebuddy.utility that implement JavaConstant Modifier and Type Class Description static classJavaConstant.DynamicRepresents a dynamically resolved constant pool entry of a class file.static classJavaConstant.MethodHandleRepresents ajava.lang.invoke.MethodHandleobject.static classJavaConstant.MethodTypeRepresents ajava.lang.invoke.MethodTypeobject.static classJavaConstant.Simple<T>Represents a simple Java constant, either a primitive constant, aStringor aClass.protected static classJavaConstant.Simple.OfTrivialValue<S>Represents a trivial constant value that represents itself.protected static classJavaConstant.Simple.OfTrivialValue.ForDoubleprotected static classJavaConstant.Simple.OfTrivialValue.ForFloatprotected static classJavaConstant.Simple.OfTrivialValue.ForIntegerprotected static classJavaConstant.Simple.OfTrivialValue.ForLongprotected static classJavaConstant.Simple.OfTrivialValue.ForStringprotected static classJavaConstant.Simple.OfTypeDescriptionRepresents a type constant.Fields in net.bytebuddy.utility with type parameters of type JavaConstant Modifier and Type Field Description private java.util.List<JavaConstant>JavaConstant.Dynamic. argumentsA list of the arguments to the dynamic constant.Methods in net.bytebuddy.utility that return JavaConstant Modifier and Type Method Description static JavaConstantJavaConstant.Simple. of(TypeDescription typeDescription)Returns a Java constant representation for aTypeDescription.static JavaConstantJavaConstant.Dynamic. ofArrayVarHandle(java.lang.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. ofAsm(TypePool typePool, java.lang.Object value)Resolves an ASM constant to aJavaConstant.static JavaConstantJavaConstant.Simple. ofDescription(java.lang.Object value, java.lang.ClassLoader classLoader)Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Simple. ofDescription(java.lang.Object value, ClassFileLocator classFileLocator)Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Simple. ofDescription(java.lang.Object value, TypePool typePool)Creates a Java constant value from ajava.lang.constant.ConstantDesc.static JavaConstantJavaConstant.Dynamic. ofEnumeration(java.lang.Enum<?> enumeration)Returns aEnumvalue constant.static JavaConstantJavaConstant.Dynamic. ofEnumeration(EnumerationDescription enumerationDescription)Returns aEnumvalue constant.static JavaConstantJavaConstant.Simple. ofLoaded(java.lang.Object value)Resolves a loaded Java value to a Java constant representation.protected static JavaConstantJavaConstant.Simple. ofLoadedOrNull(java.lang.Object value)Resolves a loaded Java value to a Java constant representation.static JavaConstantJavaConstant.Dynamic. ofPrimitiveType(java.lang.Class<?> type)Returns aClassconstant for a primitive type.static JavaConstantJavaConstant.Dynamic. ofPrimitiveType(TypeDescription typeDescription)Returns aClassconstant for a primitive type.static JavaConstantJavaConstant.Dynamic. ofVarHandle(java.lang.reflect.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.JavaConstantJavaConstant.Visitor.NoOp. onDynamic(JavaConstant.Dynamic constant)Invoked on aJavaConstant.Dynamicconstant.JavaConstantJavaConstant.Visitor.NoOp. onMethodHandle(JavaConstant.MethodHandle constant)Invoked on a constant that represents aJavaConstant.MethodHandle.JavaConstantJavaConstant.Visitor.NoOp. onMethodType(JavaConstant.MethodType constant)Invoked on a constant that represents aJavaConstant.MethodType.JavaConstantJavaConstant.Visitor.NoOp. onType(JavaConstant.Simple<TypeDescription> constant)Invoked on aJavaConstant.Simpleconstant that represents aTypeDescription.JavaConstantJavaConstant.Visitor.NoOp. onValue(JavaConstant.Simple<?> constant)Invoked on aJavaConstant.Simpleconstant that represents itself.JavaConstantJavaConstant.Dynamic. withType(java.lang.Class<?> type)Resolves thisJavaConstant.Dynamicconstant to resolve the returned instance to the supplied type.JavaConstantJavaConstant.Dynamic. withType(TypeDescription typeDescription)Resolves thisJavaConstant.Dynamicconstant to resolve the returned instance to the supplied type.static JavaConstantJavaConstant.Simple. wrap(java.lang.Object value)Wraps a value representing a loaded or unloaded constant asJavaConstantinstance.Methods in net.bytebuddy.utility that return types with arguments of type JavaConstant Modifier and Type Method Description java.util.List<JavaConstant>JavaConstant.Dynamic. getArguments()Returns a list of the arguments to the dynamic constant.static java.util.List<JavaConstant>JavaConstant.Simple. wrap(java.util.List<?> values)Wraps a list of either loaded or unloaded constant representations asJavaConstantinstances.Constructor parameters in net.bytebuddy.utility with type arguments of type JavaConstant Constructor Description Dynamic(java.lang.String name, TypeDescription typeDescription, JavaConstant.MethodHandle bootstrap, java.util.List<JavaConstant> arguments)Creates a dynamic resolved constant.
-