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 ClassDescConstantDescs. CD_booleanClassDescrepresenting the primitive typebooleanstatic ClassDescConstantDescs. CD_Booleanstatic ClassDescConstantDescs. CD_byteClassDescrepresenting the primitive typebytestatic ClassDescConstantDescs. CD_Bytestatic ClassDescConstantDescs. CD_CallSitestatic ClassDescConstantDescs. CD_charClassDescrepresenting the primitive typecharstatic ClassDescConstantDescs. CD_Characterstatic ClassDescConstantDescs. CD_Classstatic ClassDescConstantDescs. CD_ClassDescstatic ClassDescConstantDescs. CD_CollectionClassDescrepresentingCollectionstatic ClassDescConstantDescs. CD_ConstantBootstrapsClassDescrepresentingConstantBootstrapsstatic ClassDescConstantDescs. CD_ConstantDescClassDescrepresentingConstantDescstatic ClassDescConstantDescs. CD_DirectMethodHandleDescClassDescrepresentingDirectMethodHandleDescstatic ClassDescConstantDescs. CD_doubleClassDescrepresenting the primitive typedoublestatic ClassDescConstantDescs. CD_Doublestatic ClassDescConstantDescs. CD_DynamicCallSiteDescClassDescrepresentingDynamicCallSiteDescstatic ClassDescConstantDescs. CD_DynamicConstantDescClassDescrepresentingDynamicConstantDescstatic ClassDescConstantDescs. CD_Enumstatic ClassDescConstantDescs. CD_EnumDescClassDescrepresentingEnum.EnumDescstatic ClassDescConstantDescs. CD_Exceptionstatic ClassDescConstantDescs. CD_floatClassDescrepresenting the primitive typefloatstatic ClassDescConstantDescs. CD_Floatstatic ClassDescConstantDescs. CD_intClassDescrepresenting the primitive typeintstatic ClassDescConstantDescs. CD_Integerstatic ClassDescConstantDescs. CD_Liststatic ClassDescConstantDescs. CD_longClassDescrepresenting the primitive typelongstatic ClassDescConstantDescs. CD_Longstatic ClassDescConstantDescs. CD_Mapstatic ClassDescConstantDescs. CD_MethodHandleClassDescrepresentingMethodHandlestatic ClassDescConstantDescs. CD_MethodHandleDescClassDescrepresentingMethodHandleDescstatic ClassDescConstantDescs. CD_MethodHandleDesc_KindClassDescrepresentingDirectMethodHandleDesc.Kindstatic ClassDescConstantDescs. CD_MethodHandlesClassDescrepresentingMethodHandlesstatic ClassDescConstantDescs. CD_MethodHandles_LookupClassDescrepresentingMethodHandles.Lookupstatic ClassDescConstantDescs. CD_MethodTypeClassDescrepresentingMethodTypestatic ClassDescConstantDescs. CD_MethodTypeDescClassDescrepresentingMethodTypeDescstatic ClassDescConstantDescs. CD_Numberstatic ClassDescConstantDescs. CD_Objectstatic ClassDescConstantDescs. CD_Setstatic ClassDescConstantDescs. CD_shortClassDescrepresenting the primitive typeshortstatic ClassDescConstantDescs. CD_Shortstatic ClassDescConstantDescs. CD_Stringstatic ClassDescConstantDescs. CD_Throwablestatic ClassDescConstantDescs. CD_VarHandlestatic ClassDescConstantDescs. CD_VarHandleDescClassDescrepresentingVarHandle.VarHandleDescstatic ClassDescConstantDescs. CD_voidClassDescrepresenting the primitive typevoidstatic ClassDescConstantDescs. CD_VoidMethods in java.lang.constant that return ClassDesc Modifier and Type Method Description default ClassDescClassDesc. arrayType()default ClassDescClassDesc. arrayType(int rank)default ClassDescClassDesc. componentType()Returns the component type of this ClassDesc, if it describes an array type, ornullotherwise.ClassDescDynamicConstantDesc. constantType()Returns aClassDescdescribing the type that would appear in theNameAndTypeoperand of theLDCfor this constant.default ClassDescClassDesc. nested(String nestedName)default ClassDescClassDesc. nested(String firstNestedName, String... moreNestedNames)static ClassDescClassDesc. 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 ClassDescClassDesc. 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 ClassDescClassDesc. ofDescriptor(String descriptor)Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.ClassDescDirectMethodHandleDesc. owner()Returns aClassDescdescribing the class declaring the method or field described by this nominal descriptor.ClassDesc[]MethodTypeDesc. parameterArray()Returns the parameter types as an array.ClassDescMethodTypeDesc. parameterType(int index)Returns the parameter type of theindex'th parameter of the method type described by this MethodTypeDesc.ClassDescMethodTypeDesc. 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 MethodTypeDescMethodTypeDesc. 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.MethodTypeDescMethodTypeDesc. changeReturnType(ClassDesc returnType)Returns a MethodTypeDesc that is identical to this one, except with the specified return type.MethodTypeDescMethodTypeDesc. 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 DirectMethodHandleDescMethodHandleDesc. 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 MethodTypeDescMethodTypeDesc. of(ClassDesc returnDesc, ClassDesc... paramDescs)Returns a MethodTypeDesc given the return type and parameter types.static DirectMethodHandleDescConstantDescs. ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)Returns aMethodHandleDesccorresponding to a bootstrap method for aninvokedynamiccallsite, which is a static method whose leading parameter types areLookup,String, andMethodType.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 DirectMethodHandleDescConstantDescs. ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)Returns aMethodHandleDesccorresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments areLookup,String, andClass.static DirectMethodHandleDescMethodHandleDesc. ofConstructor(ClassDesc owner, ClassDesc... paramTypes)Returns a MethodHandleDesc corresponding to invocation of a constructorstatic DirectMethodHandleDescMethodHandleDesc. ofField(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType)Creates a MethodHandleDesc corresponding to a method handle that accesses a field.static DirectMethodHandleDescMethodHandleDesc. 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 ClassDescVarHandle.VarHandleDesc. varType()Returns aClassDescdescribing 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.VarHandleDescVarHandle.VarHandleDesc. ofArray(ClassDesc arrayClass)Returns a VarHandle.VarHandleDesc corresponding to aVarHandlefor an array type.static VarHandle.VarHandleDescVarHandle.VarHandleDesc. ofField(ClassDesc declaringClass, String name, ClassDesc fieldType)Returns a VarHandle.VarHandleDesc corresponding to aVarHandlefor an instance field.static VarHandle.VarHandleDescVarHandle.VarHandleDesc. ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType)Returns a VarHandle.VarHandleDesc corresponding to aVarHandlefor a static field.