Uses of Interface
java.lang.constant.ConstantDesc
Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.constant |
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. |
java.lang.invoke |
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 ConstantDesc Modifier and Type Class Description class
Double
TheDouble
class wraps a value of the primitive typedouble
in an object.static class
Enum.EnumDesc<E extends Enum<E>>
A nominal descriptor for anenum
constant.class
Float
TheFloat
class wraps a value of primitive typefloat
in an object.class
Integer
TheInteger
class wraps a value of the primitive typeint
in an object.class
Long
TheLong
class wraps a value of the primitive typelong
in an object.class
String
TheString
class represents character strings. -
Uses of ConstantDesc in java.lang.constant
Subinterfaces of ConstantDesc in java.lang.constant Modifier and Type Interface Description interface
ClassDesc
A nominal descriptor for aClass
constant.interface
DirectMethodHandleDesc
A nominal descriptor for a directMethodHandle
.interface
MethodHandleDesc
A nominal descriptor for aMethodHandle
constant.interface
MethodTypeDesc
A nominal descriptor for a MethodType constant.Classes in java.lang.constant that implement ConstantDesc Modifier and Type Class Description class
DynamicConstantDesc<T>
A nominal descriptor for a dynamic constant (one described in the constant pool withConstant_Dynamic_info
.)Fields in java.lang.constant declared as ConstantDesc Modifier and Type Field Description static ConstantDesc
ConstantDescs. NULL
Nominal descriptor representing the constantnull
Methods in java.lang.constant that return ConstantDesc Modifier and Type Method Description ConstantDesc[]
DynamicCallSiteDesc. bootstrapArgs()
ReturnsConstantDesc
s describing the bootstrap arguments for theinvokedynamic
.ConstantDesc[]
DynamicConstantDesc. bootstrapArgs()
Returns the bootstrap arguments for this constant.static <T> ConstantDesc
DynamicConstantDesc. 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 ConstantDesc Modifier and Type Method Description List<ConstantDesc>
DynamicConstantDesc. 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 ConstantDesc Modifier and Type Method Description static DynamicCallSiteDesc
DynamicCallSiteDesc. of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs)
Creates a nominal descriptor for aninvokedynamic
call 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> ConstantDesc
DynamicConstantDesc. 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
DynamicCallSiteDesc. withArgs(ConstantDesc... bootstrapArgs)
Returns a nominal descriptor for aninvokedynamic
call 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 ConstantDesc Constructor Description DynamicConstantDesc(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 ConstantDesc Modifier and Type Class Description static class
VarHandle.VarHandleDesc
A nominal descriptor for aVarHandle
constant.