public final class ConstantDescs extends Object
Modifier and Type | Method | Description |
---|---|---|
static DirectMethodHandleDesc |
ofCallsiteBootstrap |
Returns a MethodHandleDesc corresponding to a bootstrap method for an invokedynamic callsite, which is a static method whose leading parameter types are Lookup , String , and MethodType . |
static DirectMethodHandleDesc |
ofConstantBootstrap |
Returns a MethodHandleDesc corresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments are Lookup , String , and Class . |
public static final String DEFAULT_NAME
public static final ClassDesc CD_Object
public static final ClassDesc CD_String
public static final ClassDesc CD_Class
public static final ClassDesc CD_Number
public static final ClassDesc CD_Integer
public static final ClassDesc CD_Long
public static final ClassDesc CD_Float
public static final ClassDesc CD_Double
public static final ClassDesc CD_Short
public static final ClassDesc CD_Byte
public static final ClassDesc CD_Character
public static final ClassDesc CD_Boolean
public static final ClassDesc CD_Void
public static final ClassDesc CD_Throwable
public static final ClassDesc CD_Exception
public static final ClassDesc CD_Enum
public static final ClassDesc CD_VarHandle
public static final ClassDesc CD_MethodHandles
ClassDesc
representing MethodHandles
public static final ClassDesc CD_MethodHandles_Lookup
ClassDesc
representing MethodHandles.Lookup
public static final ClassDesc CD_MethodHandle
ClassDesc
representing MethodHandle
public static final ClassDesc CD_MethodType
ClassDesc
representing MethodType
public static final ClassDesc CD_CallSite
public static final ClassDesc CD_Collection
ClassDesc
representing Collection
public static final ClassDesc CD_List
public static final ClassDesc CD_Set
public static final ClassDesc CD_Map
public static final ClassDesc CD_ConstantDesc
ClassDesc
representing ConstantDesc
public static final ClassDesc CD_ClassDesc
public static final ClassDesc CD_EnumDesc
ClassDesc
representing Enum.EnumDesc
public static final ClassDesc CD_MethodTypeDesc
ClassDesc
representing MethodTypeDesc
public static final ClassDesc CD_MethodHandleDesc
ClassDesc
representing MethodHandleDesc
public static final ClassDesc CD_DirectMethodHandleDesc
ClassDesc
representing DirectMethodHandleDesc
public static final ClassDesc CD_VarHandleDesc
ClassDesc
representing VarHandle.VarHandleDesc
public static final ClassDesc CD_MethodHandleDesc_Kind
ClassDesc
representing DirectMethodHandleDesc.Kind
public static final ClassDesc CD_DynamicConstantDesc
ClassDesc
representing DynamicConstantDesc
public static final ClassDesc CD_DynamicCallSiteDesc
ClassDesc
representing DynamicCallSiteDesc
public static final ClassDesc CD_ConstantBootstraps
ClassDesc
representing ConstantBootstraps
public static final DirectMethodHandleDesc BSM_PRIMITIVE_CLASS
MethodHandleDesc
representing ConstantBootstraps.primitiveClass
public static final DirectMethodHandleDesc BSM_ENUM_CONSTANT
MethodHandleDesc
representing ConstantBootstraps.enumConstant
public static final DirectMethodHandleDesc BSM_GET_STATIC_FINAL
MethodHandleDesc
representing ConstantBootstraps.getStaticFinal
public static final DirectMethodHandleDesc BSM_NULL_CONSTANT
MethodHandleDesc
representing ConstantBootstraps.nullConstant
public static final DirectMethodHandleDesc BSM_VARHANDLE_FIELD
MethodHandleDesc
representing ConstantBootstraps.fieldVarHandle
public static final DirectMethodHandleDesc BSM_VARHANDLE_STATIC_FIELD
MethodHandleDesc
representing ConstantBootstraps.staticFieldVarHandle
public static final DirectMethodHandleDesc BSM_VARHANDLE_ARRAY
MethodHandleDesc
representing ConstantBootstraps.arrayVarHandle
public static final DirectMethodHandleDesc BSM_INVOKE
MethodHandleDesc
representing ConstantBootstraps.invoke
public static final DirectMethodHandleDesc BSM_EXPLICIT_CAST
MethodHandleDesc
representing ConstantBootstraps.explicitCast
public static final ClassDesc CD_int
ClassDesc
representing the primitive type int
public static final ClassDesc CD_long
ClassDesc
representing the primitive type long
public static final ClassDesc CD_float
ClassDesc
representing the primitive type float
public static final ClassDesc CD_double
ClassDesc
representing the primitive type double
public static final ClassDesc CD_short
ClassDesc
representing the primitive type short
public static final ClassDesc CD_byte
ClassDesc
representing the primitive type byte
public static final ClassDesc CD_char
ClassDesc
representing the primitive type char
public static final ClassDesc CD_boolean
ClassDesc
representing the primitive type boolean
public static final ClassDesc CD_void
ClassDesc
representing the primitive type void
public static final DirectMethodHandleDesc BSM_CLASS_DATA
MethodHandleDesc
representing MethodHandles.classData
public static final DirectMethodHandleDesc BSM_CLASS_DATA_AT
MethodHandleDesc
representing MethodHandles.classDataAt
public static final ConstantDesc NULL
null
public static final DynamicConstantDesc<Boolean> TRUE
public static final DynamicConstantDesc<Boolean> FALSE
public static final String INIT_NAME
void
.public static final String CLASS_INIT_NAME
ACC_STATIC
flag set, is void
and takes no arguments.public static final MethodTypeDesc MTD_void
()V
, taking no argument and returning void
.public static DirectMethodHandleDesc ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
MethodHandleDesc
corresponding to a bootstrap method for an invokedynamic
callsite, which is a static method whose leading parameter types are Lookup
, String
, and MethodType
.owner
- the class declaring the methodname
- the unqualified name of the methodreturnType
- the return type of the methodparamTypes
- the types of the static bootstrap arguments, if anyMethodHandleDesc
NullPointerException
- if any of the arguments are nullpublic static DirectMethodHandleDesc ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes)
MethodHandleDesc
corresponding to a bootstrap method for a dynamic constant, which is a static method whose leading arguments are Lookup
, String
, and Class
.owner
- the class declaring the methodname
- the unqualified name of the methodreturnType
- the return type of the methodparamTypes
- the types of the static bootstrap arguments, if anyMethodHandleDesc
NullPointerException
- if any of the arguments are null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/constant/ConstantDescs.html