Uses of Interface
java.lang.constant.ClassDesc
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 ClassDesc in java.lang
-
Uses of ClassDesc in java.lang.constant
Fields in java.lang.constant declared as ClassDesc Modifier and Type Field Description static ClassDesc
ConstantDescs. CD_boolean
ClassDesc
representing the primitive typeboolean
static ClassDesc
ConstantDescs. CD_Boolean
static ClassDesc
ConstantDescs. CD_byte
ClassDesc
representing the primitive typebyte
static ClassDesc
ConstantDescs. CD_Byte
static ClassDesc
ConstantDescs. CD_CallSite
static ClassDesc
ConstantDescs. CD_char
ClassDesc
representing the primitive typechar
static ClassDesc
ConstantDescs. CD_Character
static ClassDesc
ConstantDescs. CD_Class
static ClassDesc
ConstantDescs. CD_ClassDesc
static ClassDesc
ConstantDescs. CD_Collection
ClassDesc
representingCollection
static ClassDesc
ConstantDescs. CD_ConstantBootstraps
ClassDesc
representingConstantBootstraps
static ClassDesc
ConstantDescs. CD_ConstantDesc
ClassDesc
representingConstantDesc
static ClassDesc
ConstantDescs. CD_DirectMethodHandleDesc
ClassDesc
representingDirectMethodHandleDesc
static ClassDesc
ConstantDescs. CD_double
ClassDesc
representing the primitive typedouble
static ClassDesc
ConstantDescs. CD_Double
static ClassDesc
ConstantDescs. CD_DynamicCallSiteDesc
ClassDesc
representingDynamicCallSiteDesc
static ClassDesc
ConstantDescs. CD_DynamicConstantDesc
ClassDesc
representingDynamicConstantDesc
static ClassDesc
ConstantDescs. CD_Enum
static ClassDesc
ConstantDescs. CD_EnumDesc
ClassDesc
representingEnum.EnumDesc
static ClassDesc
ConstantDescs. CD_Exception
static ClassDesc
ConstantDescs. CD_float
ClassDesc
representing the primitive typefloat
static ClassDesc
ConstantDescs. CD_Float
static ClassDesc
ConstantDescs. CD_int
ClassDesc
representing the primitive typeint
static ClassDesc
ConstantDescs. CD_Integer
static ClassDesc
ConstantDescs. CD_List
static ClassDesc
ConstantDescs. CD_long
ClassDesc
representing the primitive typelong
static ClassDesc
ConstantDescs. CD_Long
static ClassDesc
ConstantDescs. CD_Map
static ClassDesc
ConstantDescs. CD_MethodHandle
ClassDesc
representingMethodHandle
static ClassDesc
ConstantDescs. CD_MethodHandleDesc
ClassDesc
representingMethodHandleDesc
static ClassDesc
ConstantDescs. CD_MethodHandleDesc_Kind
ClassDesc
representingDirectMethodHandleDesc.Kind
static ClassDesc
ConstantDescs. CD_MethodHandles
ClassDesc
representingMethodHandles
static ClassDesc
ConstantDescs. CD_MethodHandles_Lookup
ClassDesc
representingMethodHandles.Lookup
static ClassDesc
ConstantDescs. CD_MethodType
ClassDesc
representingMethodType
static ClassDesc
ConstantDescs. CD_MethodTypeDesc
ClassDesc
representingMethodTypeDesc
static ClassDesc
ConstantDescs. CD_Number
static ClassDesc
ConstantDescs. CD_Object
static ClassDesc
ConstantDescs. CD_Set
static ClassDesc
ConstantDescs. CD_short
ClassDesc
representing the primitive typeshort
static ClassDesc
ConstantDescs. CD_Short
static ClassDesc
ConstantDescs. CD_String
static ClassDesc
ConstantDescs. CD_Throwable
static ClassDesc
ConstantDescs. CD_VarHandle
static ClassDesc
ConstantDescs. CD_VarHandleDesc
ClassDesc
representingVarHandle.VarHandleDesc
static ClassDesc
ConstantDescs. CD_void
ClassDesc
representing the primitive typevoid
static ClassDesc
ConstantDescs. CD_Void
Methods in java.lang.constant that return ClassDesc Modifier and Type Method Description default ClassDesc
ClassDesc. arrayType()
default ClassDesc
ClassDesc. arrayType(int rank)
default ClassDesc
ClassDesc. componentType()
Returns the component type of this ClassDesc, if it describes an array type, ornull
otherwise.ClassDesc
DynamicConstantDesc. constantType()
Returns aClassDesc
describing the type that would appear in theNameAndType
operand of theLDC
for this constant.default ClassDesc
ClassDesc. nested(String nestedName)
default ClassDesc
ClassDesc. nested(String firstNestedName, String... moreNestedNames)
static ClassDesc
ClassDesc. of(String name)
Returns a ClassDesc for a class or interface type, given the name of the class or interface, such as"java.lang.String"
.static ClassDesc
ClassDesc. of(String packageName, String className)
Returns a ClassDesc for a class or interface type, given a package name and the unqualified (simple) name for the class or interface.static ClassDesc
ClassDesc. ofDescriptor(String descriptor)
Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.ClassDesc
DirectMethodHandleDesc. owner()
Returns aClassDesc
describing the class declaring the method or field described by this nominal descriptor.ClassDesc[]
MethodTypeDesc. parameterArray()
Returns the parameter types as an array.ClassDesc
MethodTypeDesc. parameterType(int index)
Returns the parameter type of theindex
'th parameter of the method type described by this MethodTypeDesc.ClassDesc
MethodTypeDesc. returnType()
Gets the return type of the method type described by this MethodTypeDesc.Methods in java.lang.constant that return types with arguments of type ClassDesc Modifier and Type Method Description List<ClassDesc>
MethodTypeDesc. parameterList()
Returns the parameter types as an immutableList
.Methods in java.lang.constant with parameters of type ClassDesc Modifier and Type Method Description MethodTypeDesc
MethodTypeDesc. changeParameterType(int index, ClassDesc paramType)
Returns a MethodTypeDesc that is identical to this one, except that a single parameter type has been changed to the specified type.MethodTypeDesc
MethodTypeDesc. changeReturnType(ClassDesc returnType)
Returns a MethodTypeDesc that is identical to this one, except with the specified return type.MethodTypeDesc
MethodTypeDesc. insertParameterTypes(int pos, ClassDesc... paramTypes)
Returns a MethodTypeDesc that is identical to this one, except that a range of additional parameter types have been inserted.static DirectMethodHandleDesc
MethodHandleDesc. of(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, String lookupDescriptor)
Creates a MethodHandleDesc corresponding to an invocation of a declared method, invocation of a constructor, or access to a field.static MethodTypeDesc
MethodTypeDesc. of(ClassDesc returnDesc, ClassDesc... paramDescs)
Returns a MethodTypeDesc given the return type and parameter types.static DirectMethodHandleDesc
ConstantDescs. ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
Returns aMethodHandleDesc
corresponding to a bootstrap method for aninvokedynamic
callsite, which is a static method whose leading parameter types areLookup
,String
, andMethodType
.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 DirectMethodHandleDesc
ConstantDescs. ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
Returns aMethodHandleDesc
corresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments areLookup
,String
, andClass
.static DirectMethodHandleDesc
MethodHandleDesc. ofConstructor(ClassDesc owner, ClassDesc... paramTypes)
Returns a MethodHandleDesc corresponding to invocation of a constructorstatic DirectMethodHandleDesc
MethodHandleDesc. ofField(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType)
Creates a MethodHandleDesc corresponding to a method handle that accesses a field.static DirectMethodHandleDesc
MethodHandleDesc. ofMethod(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType)
Creates a MethodHandleDesc corresponding to an invocation of a declared method or constructor.static <T> DynamicConstantDesc<T>
DynamicConstantDesc. ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs)
Returns a nominal descriptor for a dynamic constant.Constructors in java.lang.constant with parameters of type ClassDesc Constructor Description DynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs)
Creates a nominal descriptor for a dynamic constant. -
Uses of ClassDesc in java.lang.invoke
Methods in java.lang.invoke that return ClassDesc Modifier and Type Method Description ClassDesc
VarHandle.VarHandleDesc. varType()
Returns aClassDesc
describing the type of the variable described by this descriptor.Methods in java.lang.invoke with parameters of type ClassDesc Modifier and Type Method Description static VarHandle.VarHandleDesc
VarHandle.VarHandleDesc. ofArray(ClassDesc arrayClass)
Returns a VarHandle.VarHandleDesc corresponding to aVarHandle
for an array type.static VarHandle.VarHandleDesc
VarHandle.VarHandleDesc. ofField(ClassDesc declaringClass, String name, ClassDesc fieldType)
Returns a VarHandle.VarHandleDesc corresponding to aVarHandle
for an instance field.static VarHandle.VarHandleDesc
VarHandle.VarHandleDesc. ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType)
Returns a VarHandle.VarHandleDesc corresponding to aVarHandle
for a static field.