java.lang.constant
12 classes of the module java.base.
Load them with:
using {
"java.lang.constant"
}
ClassDesc Constable ConstantDesc ConstantDescs DirectMethodHandleDesc DirectMethodHandleDescKind DynamicCallSiteDesc DynamicConstantDesc MethodHandleDesc MethodTypeDesc ModuleDesc PackageDesc
ClassDesc#
interface · java.lang.constant.ClassDesc
Extends: ConstantDesc, TypeDescriptorOfField
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@arrayType | @arrayType(rank) | ClassDesc arrayType(int rank) |
arrayType | arrayType() | ClassDesc arrayType() |
componentType | componentType() | ClassDesc componentType() |
descriptorString | descriptorString() | String descriptorString() |
displayName | displayName() | String displayName() |
equals | equals(o) | boolean equals(Object o) |
isArray | isArray() | boolean isArray() |
isClassOrInterface | isClassOrInterface() | boolean isClassOrInterface() |
isPrimitive | isPrimitive() | boolean isPrimitive() |
nested | nested(nestedName)nested([firstNestedName,moreNestedNames])nested([ :firstNestedName = v, :moreNestedNames = v ]) | ClassDesc nested(String nestedName)ClassDesc nested(String firstNestedName, String[] moreNestedNames) |
of | of(name)of([packageName,className])of([ :packageName = v, :className = v ]) | static ClassDesc of(String name)static ClassDesc of(String packageName, String className) |
ofDescriptor | ofDescriptor(descriptor) | static ClassDesc ofDescriptor(String descriptor) |
ofInternalName | ofInternalName(name) | static ClassDesc ofInternalName(String name) |
packageName | packageName() | String packageName() |
resolveConstantDesc | resolveConstantDesc(lookup) | Class resolveConstantDesc(Lookup lookup) |
Constable#
interface · java.lang.constant.Constable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
describeConstable | describeConstable() | Optional describeConstable() |
ConstantDesc#
interface · java.lang.constant.ConstantDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
resolveConstantDesc | resolveConstantDesc(lookup) | Object resolveConstantDesc(Lookup lookup) |
ConstantDescs#
class final · extends Object · java.lang.constant.ConstantDescs
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT_NAME | String | constant · static | o.DEFAULT_NAME |
CD_Object | ClassDesc | constant · static | o.CD_Object |
CD_String | ClassDesc | constant · static | o.CD_String |
CD_Class | ClassDesc | constant · static | o.CD_Class |
CD_Number | ClassDesc | constant · static | o.CD_Number |
CD_Integer | ClassDesc | constant · static | o.CD_Integer |
CD_Long | ClassDesc | constant · static | o.CD_Long |
CD_Float | ClassDesc | constant · static | o.CD_Float |
CD_Double | ClassDesc | constant · static | o.CD_Double |
CD_Short | ClassDesc | constant · static | o.CD_Short |
CD_Byte | ClassDesc | constant · static | o.CD_Byte |
CD_Character | ClassDesc | constant · static | o.CD_Character |
CD_Boolean | ClassDesc | constant · static | o.CD_Boolean |
CD_Void | ClassDesc | constant · static | o.CD_Void |
CD_Throwable | ClassDesc | constant · static | o.CD_Throwable |
CD_Exception | ClassDesc | constant · static | o.CD_Exception |
CD_Enum | ClassDesc | constant · static | o.CD_Enum |
CD_VarHandle | ClassDesc | constant · static | o.CD_VarHandle |
CD_MethodHandles | ClassDesc | constant · static | o.CD_MethodHandles |
CD_MethodHandles_Lookup | ClassDesc | constant · static | o.CD_MethodHandles_Lookup |
CD_MethodHandle | ClassDesc | constant · static | o.CD_MethodHandle |
CD_MethodType | ClassDesc | constant · static | o.CD_MethodType |
CD_CallSite | ClassDesc | constant · static | o.CD_CallSite |
CD_Collection | ClassDesc | constant · static | o.CD_Collection |
CD_List | ClassDesc | constant · static | o.CD_List |
CD_Set | ClassDesc | constant · static | o.CD_Set |
CD_Map | ClassDesc | constant · static | o.CD_Map |
CD_ConstantDesc | ClassDesc | constant · static | o.CD_ConstantDesc |
CD_ClassDesc | ClassDesc | constant · static | o.CD_ClassDesc |
CD_EnumDesc | ClassDesc | constant · static | o.CD_EnumDesc |
CD_MethodTypeDesc | ClassDesc | constant · static | o.CD_MethodTypeDesc |
CD_MethodHandleDesc | ClassDesc | constant · static | o.CD_MethodHandleDesc |
CD_DirectMethodHandleDesc | ClassDesc | constant · static | o.CD_DirectMethodHandleDesc |
CD_VarHandleDesc | ClassDesc | constant · static | o.CD_VarHandleDesc |
CD_MethodHandleDesc_Kind | ClassDesc | constant · static | o.CD_MethodHandleDesc_Kind |
CD_DynamicConstantDesc | ClassDesc | constant · static | o.CD_DynamicConstantDesc |
CD_DynamicCallSiteDesc | ClassDesc | constant · static | o.CD_DynamicCallSiteDesc |
CD_ConstantBootstraps | ClassDesc | constant · static | o.CD_ConstantBootstraps |
BSM_PRIMITIVE_CLASS | DirectMethodHandleDesc | constant · static | o.BSM_PRIMITIVE_CLASS |
BSM_ENUM_CONSTANT | DirectMethodHandleDesc | constant · static | o.BSM_ENUM_CONSTANT |
BSM_GET_STATIC_FINAL | DirectMethodHandleDesc | constant · static | o.BSM_GET_STATIC_FINAL |
BSM_NULL_CONSTANT | DirectMethodHandleDesc | constant · static | o.BSM_NULL_CONSTANT |
BSM_VARHANDLE_FIELD | DirectMethodHandleDesc | constant · static | o.BSM_VARHANDLE_FIELD |
BSM_VARHANDLE_STATIC_FIELD | DirectMethodHandleDesc | constant · static | o.BSM_VARHANDLE_STATIC_FIELD |
BSM_VARHANDLE_ARRAY | DirectMethodHandleDesc | constant · static | o.BSM_VARHANDLE_ARRAY |
BSM_INVOKE | DirectMethodHandleDesc | constant · static | o.BSM_INVOKE |
BSM_EXPLICIT_CAST | DirectMethodHandleDesc | constant · static | o.BSM_EXPLICIT_CAST |
CD_int | ClassDesc | constant · static | o.CD_int |
CD_char | ClassDesc | constant · static | o.CD_char |
BSM_CLASS_DATA | DirectMethodHandleDesc | constant · static | o.BSM_CLASS_DATA |
BSM_CLASS_DATA_AT | DirectMethodHandleDesc | constant · static | o.BSM_CLASS_DATA_AT |
NULL | ConstantDesc | constant · static | o.NULL |
TRUE | DynamicConstantDesc | constant · static | o.TRUE |
FALSE | DynamicConstantDesc | constant · static | o.FALSE |
INIT_NAME | String | constant · static | o.INIT_NAME |
CLASS_INIT_NAME | String | constant · static | o.CLASS_INIT_NAME |
MTD_void | MethodTypeDesc | constant · static | o.MTD_void |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
ofCallsiteBootstrap | ofCallsiteBootstrap(owner,name,returnType,paramTypes) | static DirectMethodHandleDesc ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc[] paramTypes) |
ofConstantBootstrap | ofConstantBootstrap(owner,name,returnType,paramTypes) | static DirectMethodHandleDesc ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc[] paramTypes) |
The methods and fields of Object are inherited.
DirectMethodHandleDesc#
interface · java.lang.constant.DirectMethodHandleDesc
Extends: MethodHandleDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
asType | asType(type) | MethodHandleDesc asType(MethodTypeDesc type) |
equals | equals(o) | boolean equals(Object o) |
invocationType | invocationType() | MethodTypeDesc invocationType() |
isOwnerInterface | isOwnerInterface() | boolean isOwnerInterface() |
kind | kind() | Kind kind() |
lookupDescriptor | lookupDescriptor() | String lookupDescriptor() |
methodName | methodName() | String methodName() |
owner | owner() | ClassDesc owner() |
refKind | refKind() | int refKind() |
resolveConstantDesc | resolveConstantDesc(lookup) | MethodHandle resolveConstantDesc(Lookup lookup) |
DirectMethodHandleDescKind#
enum · extends Enum · java.lang.constant.DirectMethodHandleDesc$Kind
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
STATIC | Kind | constant · static | o.STATIC |
INTERFACE_STATIC | Kind | constant · static | o.INTERFACE_STATIC |
VIRTUAL | Kind | constant · static | o.VIRTUAL |
INTERFACE_VIRTUAL | Kind | constant · static | o.INTERFACE_VIRTUAL |
SPECIAL | Kind | constant · static | o.SPECIAL |
INTERFACE_SPECIAL | Kind | constant · static | o.INTERFACE_SPECIAL |
CONSTRUCTOR | Kind | constant · static | o.CONSTRUCTOR |
GETTER | Kind | constant · static | o.GETTER |
SETTER | Kind | constant · static | o.SETTER |
STATIC_GETTER | Kind | constant · static | o.STATIC_GETTER |
STATIC_SETTER | Kind | constant · static | o.STATIC_SETTER |
refKind | int | constant | o.refKind |
isInterface | boolean | constant | o.isInterface |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(refKind)valueOf([refKind,isInterface])valueOf([ :refKind = v, :isInterface = v ]) | static Kind valueOf(int refKind)static Kind valueOf(String refKind)static Kind valueOf(int refKind, boolean isInterface)static Enum valueOf(Class enumClass, String name) |
values | values() | static Kind[] values() |
The methods and fields of Enum are inherited.
DynamicCallSiteDesc#
class final · extends Object · java.lang.constant.DynamicCallSiteDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
bootstrapArgs | bootstrapArgs() | ConstantDesc[] bootstrapArgs() |
bootstrapMethod | bootstrapMethod() | MethodHandleDesc bootstrapMethod() |
invocationName | invocationName() | String invocationName() |
invocationType | invocationType() | MethodTypeDesc invocationType() |
of | of([bootstrapMethod,invocationType])of([ :bootstrapMethod = v, :invocationType = v ])of([bootstrapMethod,invocationName,invocationType])of([ :bootstrapMethod = v, :invocationName = v, :invocationType = v ])of([bootstrapMethod,invocationName,invocationType,bootstrapArgs])of([ :bootstrapMethod = v, :invocationName = v, :invocationType = v, :bootstrapArgs = v ]) | static DynamicCallSiteDesc of(DirectMethodHandleDesc bootstrapMethod, MethodTypeDesc invocationType)static DynamicCallSiteDesc of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType)static DynamicCallSiteDesc of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc[] bootstrapArgs) |
resolveCallSiteDesc | resolveCallSiteDesc(lookup) | CallSite resolveCallSiteDesc(Lookup lookup) |
withArgs | withArgs(bootstrapArgs) | DynamicCallSiteDesc withArgs(ConstantDesc[] bootstrapArgs) |
withNameAndType | withNameAndType(invocationName,invocationType) | DynamicCallSiteDesc withNameAndType(String invocationName, MethodTypeDesc invocationType) |
The methods and fields of Object are inherited.
DynamicConstantDesc#
abstract · extends Object · java.lang.constant.DynamicConstantDesc
Implements: ConstantDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
bootstrapArgs | bootstrapArgs() | ConstantDesc[] bootstrapArgs() |
bootstrapArgsList | bootstrapArgsList() | List bootstrapArgsList() |
bootstrapMethod | bootstrapMethod() | DirectMethodHandleDesc bootstrapMethod() |
constantName | constantName() | String constantName() |
constantType | constantType() | ClassDesc constantType() |
of | of(bootstrapMethod)of([bootstrapMethod,bootstrapArgs])of([ :bootstrapMethod = v, :bootstrapArgs = v ]) | static DynamicConstantDesc of(DirectMethodHandleDesc bootstrapMethod)static DynamicConstantDesc of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc[] bootstrapArgs) |
ofCanonical | ofCanonical(bootstrapMethod,constantName,constantType,bootstrapArgs) | static ConstantDesc ofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) |
ofNamed | ofNamed(bootstrapMethod,constantName,constantType,bootstrapArgs) | static DynamicConstantDesc ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) |
resolveConstantDesc | resolveConstantDesc(lookup) | Object resolveConstantDesc(Lookup lookup) |
The methods and fields of Object are inherited.
MethodHandleDesc#
interface · java.lang.constant.MethodHandleDesc
Extends: ConstantDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
asType | asType(type) | MethodHandleDesc asType(MethodTypeDesc type) |
equals | equals(o) | boolean equals(Object o) |
invocationType | invocationType() | MethodTypeDesc invocationType() |
of | of(kind,owner,name,lookupDescriptor) | static DirectMethodHandleDesc of(Kind kind, ClassDesc owner, String name, String lookupDescriptor) |
ofConstructor | ofConstructor(owner,paramTypes) | static DirectMethodHandleDesc ofConstructor(ClassDesc owner, ClassDesc[] paramTypes) |
ofField | ofField(kind,owner,fieldName,fieldType) | static DirectMethodHandleDesc ofField(Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType) |
ofMethod | ofMethod(kind,owner,name,lookupMethodType) | static DirectMethodHandleDesc ofMethod(Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType) |
resolveConstantDesc | resolveConstantDesc(lookup) | MethodHandle resolveConstantDesc(Lookup lookup) |
MethodTypeDesc#
interface · java.lang.constant.MethodTypeDesc
Extends: ConstantDesc, TypeDescriptorOfMethod
Methods
| Method | Ring call | Java overloads |
|---|---|---|
changeParameterType | changeParameterType(index,paramType) | MethodTypeDesc changeParameterType(int index, ClassDesc paramType) |
changeReturnType | changeReturnType(returnType) | MethodTypeDesc changeReturnType(ClassDesc returnType) |
descriptorString | descriptorString() | String descriptorString() |
displayDescriptor | displayDescriptor() | String displayDescriptor() |
dropParameterTypes | dropParameterTypes(start,end) | MethodTypeDesc dropParameterTypes(int start, int end) |
equals | equals(o) | boolean equals(Object o) |
insertParameterTypes | insertParameterTypes(pos,paramTypes) | MethodTypeDesc insertParameterTypes(int pos, ClassDesc[] paramTypes) |
of | of(returnDesc)of([returnDesc,paramDescs])of([ :returnDesc = v, :paramDescs = v ]) | static MethodTypeDesc of(ClassDesc returnDesc)static MethodTypeDesc of(ClassDesc returnDesc, ClassDesc[] paramDescs)static MethodTypeDesc of(ClassDesc returnDesc, List paramDescs) |
ofDescriptor | ofDescriptor(descriptor) | static MethodTypeDesc ofDescriptor(String descriptor) |
parameterArray | parameterArray() | ClassDesc[] parameterArray() |
parameterCount | parameterCount() | int parameterCount() |
parameterList | parameterList() | List parameterList() |
parameterType | parameterType(index) | ClassDesc parameterType(int index) |
resolveConstantDesc | resolveConstantDesc(lookup) | MethodType resolveConstantDesc(Lookup lookup) |
returnType | returnType() | ClassDesc returnType() |
ModuleDesc#
interface · java.lang.constant.ModuleDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
equals | equals(o) | boolean equals(Object o) |
name | name() | String name() |
of | of(name) | static ModuleDesc of(String name) |
PackageDesc#
interface · java.lang.constant.PackageDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
equals | equals(o) | boolean equals(Object o) |
internalName | internalName() | String internalName() |
name | name() | String name() |
of | of(name) | static PackageDesc of(String name) |
ofInternalName | ofInternalName(name) | static PackageDesc ofInternalName(String name) |