Class ConstantDescs
java.lang.Object
java.lang.constant.ConstantDescs
Predefined values of nominal descriptor
 for common constants, including descriptors for primitive class types and
 other common platform types, and descriptors for method handles for standard
 bootstrap methods.
- Since:
- 12
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DirectMethodHandleDescMethodHandleDescrepresentingMethodHandles.classDatastatic final DirectMethodHandleDescMethodHandleDescrepresentingMethodHandles.classDataAtstatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.enumConstantstatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.explicitCaststatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.getStaticFinalstatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.invokestatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.nullConstantstatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.primitiveClassstatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.arrayVarHandlestatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.fieldVarHandlestatic final DirectMethodHandleDescMethodHandleDescrepresentingConstantBootstraps.staticFieldVarHandlestatic final ClassDescClassDescrepresenting the primitive typebooleanstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typebytestatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typecharstatic final ClassDescstatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresentingCollectionstatic final ClassDescClassDescrepresentingConstantBootstrapsstatic final ClassDescClassDescrepresentingConstantDescstatic final ClassDescClassDescrepresentingDirectMethodHandleDescstatic final ClassDescClassDescrepresenting the primitive typedoublestatic final ClassDescstatic final ClassDescClassDescrepresentingDynamicCallSiteDescstatic final ClassDescClassDescrepresentingDynamicConstantDescstatic final ClassDescstatic final ClassDescClassDescrepresentingEnum.EnumDescstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typefloatstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typeintstatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typelongstatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresentingMethodHandlestatic final ClassDescClassDescrepresentingMethodHandleDescstatic final ClassDescClassDescrepresentingDirectMethodHandleDesc.Kindstatic final ClassDescClassDescrepresentingMethodHandlesstatic final ClassDescClassDescrepresentingMethodHandles.Lookupstatic final ClassDescClassDescrepresentingMethodTypestatic final ClassDescClassDescrepresentingMethodTypeDescstatic final ClassDescstatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresenting the primitive typeshortstatic final ClassDescstatic final ClassDescstatic final ClassDescstatic final ClassDescstatic final ClassDescClassDescrepresentingVarHandle.VarHandleDescstatic final ClassDescClassDescrepresenting the primitive typevoidstatic final ClassDescstatic final StringThe special name of class initialization methods, "<clinit>".static final StringInvocation name to use when no name is needed, such as the name of a constructor, or the invocation name of a dynamic constant or dynamic callsite when the bootstrap is known to ignore the invocation name.static final DynamicConstantDesc<Boolean> Nominal descriptor representing the constant Boolean.FALSEstatic final StringThe special name of instance initialization methods, "<init>".static final MethodTypeDescNominal descriptor representing the method descriptor()V, taking no argument and returningvoid.static final ConstantDescNominal descriptor representing the constantnullstatic final DynamicConstantDesc<Boolean> Nominal descriptor representing the constant Boolean.TRUE
- 
Method SummaryModifier and TypeMethodDescriptionstatic DirectMethodHandleDescofCallsiteBootstrap(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 DirectMethodHandleDescofConstantBootstrap(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.
- 
Field Details- 
DEFAULT_NAMEInvocation name to use when no name is needed, such as the name of a constructor, or the invocation name of a dynamic constant or dynamic callsite when the bootstrap is known to ignore the invocation name.- See Also:
 
- 
CD_Object
- 
CD_String
- 
CD_Class
- 
CD_Number
- 
CD_Integer
- 
CD_Long
- 
CD_Float
- 
CD_Double
- 
CD_Short
- 
CD_Byte
- 
CD_Character
- 
CD_Boolean
- 
CD_Void
- 
CD_Throwable
- 
CD_Exception
- 
CD_Enum
- 
CD_VarHandle
- 
CD_MethodHandlesClassDescrepresentingMethodHandles
- 
CD_MethodHandles_LookupClassDescrepresentingMethodHandles.Lookup
- 
CD_MethodHandleClassDescrepresentingMethodHandle
- 
CD_MethodTypeClassDescrepresentingMethodType
- 
CD_CallSite
- 
CD_CollectionClassDescrepresentingCollection
- 
CD_List
- 
CD_Set
- 
CD_Map
- 
CD_ConstantDescClassDescrepresentingConstantDesc
- 
CD_ClassDesc
- 
CD_EnumDescClassDescrepresentingEnum.EnumDesc
- 
CD_MethodTypeDescClassDescrepresentingMethodTypeDesc
- 
CD_MethodHandleDescClassDescrepresentingMethodHandleDesc
- 
CD_DirectMethodHandleDescClassDescrepresentingDirectMethodHandleDesc
- 
CD_VarHandleDescClassDescrepresentingVarHandle.VarHandleDesc
- 
CD_MethodHandleDesc_KindClassDescrepresentingDirectMethodHandleDesc.Kind
- 
CD_DynamicConstantDescClassDescrepresentingDynamicConstantDesc
- 
CD_DynamicCallSiteDescClassDescrepresentingDynamicCallSiteDesc
- 
CD_ConstantBootstrapsClassDescrepresentingConstantBootstraps
- 
BSM_PRIMITIVE_CLASSMethodHandleDescrepresentingConstantBootstraps.primitiveClass
- 
BSM_ENUM_CONSTANTMethodHandleDescrepresentingConstantBootstraps.enumConstant
- 
BSM_GET_STATIC_FINALMethodHandleDescrepresentingConstantBootstraps.getStaticFinal- Since:
- 15
 
- 
BSM_NULL_CONSTANTMethodHandleDescrepresentingConstantBootstraps.nullConstant
- 
BSM_VARHANDLE_FIELDMethodHandleDescrepresentingConstantBootstraps.fieldVarHandle
- 
BSM_VARHANDLE_STATIC_FIELDMethodHandleDescrepresentingConstantBootstraps.staticFieldVarHandle
- 
BSM_VARHANDLE_ARRAYMethodHandleDescrepresentingConstantBootstraps.arrayVarHandle
- 
BSM_INVOKEMethodHandleDescrepresentingConstantBootstraps.invoke
- 
BSM_EXPLICIT_CASTMethodHandleDescrepresentingConstantBootstraps.explicitCast- Since:
- 15
 
- 
CD_int
- 
CD_long
- 
CD_float
- 
CD_double
- 
CD_short
- 
CD_byte
- 
CD_char
- 
CD_boolean
- 
CD_void
- 
BSM_CLASS_DATAMethodHandleDescrepresentingMethodHandles.classData- Since:
- 21
 
- 
BSM_CLASS_DATA_ATMethodHandleDescrepresentingMethodHandles.classDataAt- Since:
- 21
 
- 
NULLNominal descriptor representing the constantnull
- 
TRUENominal descriptor representing the constant Boolean.TRUE- Since:
- 15
 
- 
FALSENominal descriptor representing the constant Boolean.FALSE- Since:
- 15
 
- 
INIT_NAMEThe special name of instance initialization methods, "<init>". An instance initialization method has this special name and isvoid.- See Java Virtual Machine Specification:
- 
2.9.1 Instance Initialization Methods
- Since:
- 21
- See Also:
 
- 
CLASS_INIT_NAMEThe special name of class initialization methods, "<clinit>". A class initialization method has this special name,ACC_STATICflag set, isvoidand takes no arguments.- See Java Virtual Machine Specification:
- 
2.9.2 Class Initialization Methods
- Since:
- 21
- See Also:
 
- 
MTD_voidNominal descriptor representing the method descriptor()V, taking no argument and returningvoid.- Since:
- 21
 
 
- 
- 
Method Details- 
ofCallsiteBootstrappublic static DirectMethodHandleDesc 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.- Parameters:
- owner- the class declaring the method
- name- the unqualified name of the method
- returnType- the return type of the method
- paramTypes- the types of the static bootstrap arguments, if any
- Returns:
- the MethodHandleDesc
- Throws:
- NullPointerException- if any of the arguments are null
- See Java Virtual Machine Specification:
- 
4.2.2 Unqualified Names
 
- 
ofConstantBootstrappublic static DirectMethodHandleDesc 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.- Parameters:
- owner- the class declaring the method
- name- the unqualified name of the method
- returnType- the return type of the method
- paramTypes- the types of the static bootstrap arguments, if any
- Returns:
- the MethodHandleDesc
- Throws:
- NullPointerException- if any of the arguments are null
- See Java Virtual Machine Specification:
- 
4.2.2 Unqualified Names
 
 
-