Uses of Interface
java.lang.constant.ConstantDesc
Packages that use ConstantDesc
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file attributes for the java.lang.classfile library.Provides interfaces describing constant pool entries for the
java.lang.classfile library.Provides interfaces describing code instructions for the
java.lang.classfile library.Classes and interfaces to represent nominal descriptors for run-time
entities such as classes or method handles, and classfile entities such as
constant pool entries or
invokedynamic call sites.The
java.lang.invoke package provides low-level primitives for interacting
with the Java Virtual Machine.-
Uses of ConstantDesc in java.lang
Classes in java.lang that implement ConstantDescModifier and TypeClassDescriptionfinal classstatic final classEnum.EnumDesc<E extends Enum<E>>A nominal descriptor for anenumconstant.final classfinal classfinal classfinal classTheStringclass represents character strings. -
Uses of ConstantDesc in java.lang.classfile
Methods in java.lang.classfile with parameters of type ConstantDescModifier and TypeMethodDescriptiondefault CodeBuilderCodeBuilder.ldc(ConstantDesc value) Generates an instruction pushing an item from the run-time constant pool onto the operand stack.default CodeBuilderCodeBuilder.loadConstant(ConstantDesc value) Generates an instruction pushing a constant onto the operand stack. -
Uses of ConstantDesc in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute with parameters of type ConstantDescModifier and TypeMethodDescriptionstatic ConstantValueAttributeConstantValueAttribute.of(ConstantDesc value) Returns aConstantValueattribute. -
Uses of ConstantDesc in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool that return ConstantDescModifier and TypeMethodDescriptionAnnotationConstantValueEntry.constantValue()Returns the constant value.default ConstantDescClassEntry.constantValue()Returns a symbolic descriptor of this constant.default ConstantDescConstantDynamicEntry.constantValue()Returns a symbolic descriptor of this constant.ConstantValueEntry.constantValue()Returns the constant value.LoadableConstantEntry.constantValue()Returns a symbolic descriptor of this constant.default ConstantDescMethodHandleEntry.constantValue()Returns a symbolic descriptor of this constant.default ConstantDescMethodTypeEntry.constantValue()Returns a symbolic descriptor of this constant.Methods in java.lang.classfile.constantpool with parameters of type ConstantDescModifier and TypeMethodDescriptiondefault ConstantValueEntryConstantPoolBuilder.constantValueEntry(ConstantDesc c) default LoadableConstantEntryConstantPoolBuilder.loadableConstantEntry(ConstantDesc c) Returns aLoadableConstantEntrydescribing the provided constant value.Method parameters in java.lang.classfile.constantpool with type arguments of type ConstantDescModifier and TypeMethodDescriptiondefault BootstrapMethodEntryConstantPoolBuilder.bsmEntry(DirectMethodHandleDesc methodReference, List<ConstantDesc> arguments) Returns aBootstrapMethodEntrydescribing the provided bootstrap method and arguments. -
Uses of ConstantDesc in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return ConstantDescModifier and TypeMethodDescriptionConstantInstruction.constantValue()Returns the constant value.Methods in java.lang.classfile.instruction that return types with arguments of type ConstantDescModifier and TypeMethodDescriptiondefault List<ConstantDesc> InvokeDynamicInstruction.bootstrapArgs()Returns the bootstrap arguments of the call site. -
Uses of ConstantDesc in java.lang.constant
Subinterfaces of ConstantDesc in java.lang.constantModifier and TypeInterfaceDescriptioninterfaceA nominal descriptor for aClassconstant.interfaceA nominal descriptor for a directMethodHandle.interfaceA nominal descriptor for aMethodHandleconstant.interfaceA nominal descriptor for a MethodType constant.Classes in java.lang.constant that implement ConstantDescModifier and TypeClassDescriptionclassA nominal descriptor for a dynamic constant (one described in the constant pool withConstant_Dynamic_info.)Fields in java.lang.constant declared as ConstantDescModifier and TypeFieldDescriptionstatic final ConstantDescConstantDescs.NULLNominal descriptor representing the constantnullMethods in java.lang.constant that return ConstantDescModifier and TypeMethodDescriptionDynamicCallSiteDesc.bootstrapArgs()ReturnsConstantDescs describing the bootstrap arguments for theinvokedynamic.DynamicConstantDesc.bootstrapArgs()Returns the bootstrap arguments for this constant.static <T> ConstantDescDynamicConstantDesc.ofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) Returns a nominal descriptor for a dynamic constant, transforming it into a more specific type if the constant bootstrap is a well-known one and a more specific nominal descriptor type (e.g., ClassDesc) is available.Methods in java.lang.constant that return types with arguments of type ConstantDescModifier and TypeMethodDescriptionDynamicConstantDesc.bootstrapArgsList()Returns the bootstrap arguments for this constant as an immutableList.Optional<? extends ConstantDesc> Constable.describeConstable()Methods in java.lang.constant with parameters of type ConstantDescModifier and TypeMethodDescriptionstatic DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for aninvokedynamiccall site.static <T> DynamicConstantDesc<T> DynamicConstantDesc.of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc... bootstrapArgs) Returns a nominal descriptor for a dynamic constant whose name parameter isConstantDescs.DEFAULT_NAME, and whose type parameter is always the same as the bootstrap method return type.static <T> ConstantDescDynamicConstantDesc.ofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) Returns a nominal descriptor for a dynamic constant, transforming it into a more specific type if the constant bootstrap is a well-known one and a more specific nominal descriptor type (e.g., ClassDesc) is available.static <T> DynamicConstantDesc<T> DynamicConstantDesc.ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) Returns a nominal descriptor for a dynamic constant.DynamicCallSiteDesc.withArgs(ConstantDesc... bootstrapArgs) Returns a nominal descriptor for aninvokedynamiccall site whose bootstrap method, name, and invocation type are the same as this one, but with the specified bootstrap arguments.Constructors in java.lang.constant with parameters of type ConstantDescModifierConstructorDescriptionprotectedDynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) Creates a nominal descriptor for a dynamic constant. -
Uses of ConstantDesc in java.lang.invoke
Classes in java.lang.invoke that implement ConstantDescModifier and TypeClassDescriptionstatic final classA nominal descriptor for aVarHandleconstant.