RingJavafor Ring

java.lang.constant

12 classes of the module java.base.

Load them with:

using {
	"java.lang.constant"
}

All packages

ClassDesc#

interface · java.lang.constant.ClassDesc

Extends: ConstantDesc, TypeDescriptorOfField

Methods

MethodRing callJava overloads
@arrayType@arrayType(rank)ClassDesc arrayType(int rank)
arrayTypearrayType()ClassDesc arrayType()
componentTypecomponentType()ClassDesc componentType()
descriptorStringdescriptorString()String descriptorString()
displayNamedisplayName()String displayName()
equalsequals(o)boolean equals(Object o)
isArrayisArray()boolean isArray()
isClassOrInterfaceisClassOrInterface()boolean isClassOrInterface()
isPrimitiveisPrimitive()boolean isPrimitive()
nestednested(nestedName)
nested([firstNestedName,moreNestedNames])
nested([ :firstNestedName = v, :moreNestedNames = v ])
ClassDesc nested(String nestedName)
ClassDesc nested(String firstNestedName, String[] moreNestedNames)
ofof(name)
of([packageName,className])
of([ :packageName = v, :className = v ])
static ClassDesc of(String name)
static ClassDesc of(String packageName, String className)
ofDescriptorofDescriptor(descriptor)static ClassDesc ofDescriptor(String descriptor)
ofInternalNameofInternalName(name)static ClassDesc ofInternalName(String name)
packageNamepackageName()String packageName()
resolveConstantDescresolveConstantDesc(lookup)Class resolveConstantDesc(Lookup lookup)

Constable#

interface · java.lang.constant.Constable

Methods

MethodRing callJava overloads
describeConstabledescribeConstable()Optional describeConstable()

ConstantDesc#

interface · java.lang.constant.ConstantDesc

Methods

MethodRing callJava overloads
resolveConstantDescresolveConstantDesc(lookup)Object resolveConstantDesc(Lookup lookup)

ConstantDescs#

class final · extends Object · java.lang.constant.ConstantDescs

Fields

NameTypeAccessIn Ring
DEFAULT_NAMEStringconstant · statico.DEFAULT_NAME
CD_ObjectClassDescconstant · statico.CD_Object
CD_StringClassDescconstant · statico.CD_String
CD_ClassClassDescconstant · statico.CD_Class
CD_NumberClassDescconstant · statico.CD_Number
CD_IntegerClassDescconstant · statico.CD_Integer
CD_LongClassDescconstant · statico.CD_Long
CD_FloatClassDescconstant · statico.CD_Float
CD_DoubleClassDescconstant · statico.CD_Double
CD_ShortClassDescconstant · statico.CD_Short
CD_ByteClassDescconstant · statico.CD_Byte
CD_CharacterClassDescconstant · statico.CD_Character
CD_BooleanClassDescconstant · statico.CD_Boolean
CD_VoidClassDescconstant · statico.CD_Void
CD_ThrowableClassDescconstant · statico.CD_Throwable
CD_ExceptionClassDescconstant · statico.CD_Exception
CD_EnumClassDescconstant · statico.CD_Enum
CD_VarHandleClassDescconstant · statico.CD_VarHandle
CD_MethodHandlesClassDescconstant · statico.CD_MethodHandles
CD_MethodHandles_LookupClassDescconstant · statico.CD_MethodHandles_Lookup
CD_MethodHandleClassDescconstant · statico.CD_MethodHandle
CD_MethodTypeClassDescconstant · statico.CD_MethodType
CD_CallSiteClassDescconstant · statico.CD_CallSite
CD_CollectionClassDescconstant · statico.CD_Collection
CD_ListClassDescconstant · statico.CD_List
CD_SetClassDescconstant · statico.CD_Set
CD_MapClassDescconstant · statico.CD_Map
CD_ConstantDescClassDescconstant · statico.CD_ConstantDesc
CD_ClassDescClassDescconstant · statico.CD_ClassDesc
CD_EnumDescClassDescconstant · statico.CD_EnumDesc
CD_MethodTypeDescClassDescconstant · statico.CD_MethodTypeDesc
CD_MethodHandleDescClassDescconstant · statico.CD_MethodHandleDesc
CD_DirectMethodHandleDescClassDescconstant · statico.CD_DirectMethodHandleDesc
CD_VarHandleDescClassDescconstant · statico.CD_VarHandleDesc
CD_MethodHandleDesc_KindClassDescconstant · statico.CD_MethodHandleDesc_Kind
CD_DynamicConstantDescClassDescconstant · statico.CD_DynamicConstantDesc
CD_DynamicCallSiteDescClassDescconstant · statico.CD_DynamicCallSiteDesc
CD_ConstantBootstrapsClassDescconstant · statico.CD_ConstantBootstraps
BSM_PRIMITIVE_CLASSDirectMethodHandleDescconstant · statico.BSM_PRIMITIVE_CLASS
BSM_ENUM_CONSTANTDirectMethodHandleDescconstant · statico.BSM_ENUM_CONSTANT
BSM_GET_STATIC_FINALDirectMethodHandleDescconstant · statico.BSM_GET_STATIC_FINAL
BSM_NULL_CONSTANTDirectMethodHandleDescconstant · statico.BSM_NULL_CONSTANT
BSM_VARHANDLE_FIELDDirectMethodHandleDescconstant · statico.BSM_VARHANDLE_FIELD
BSM_VARHANDLE_STATIC_FIELDDirectMethodHandleDescconstant · statico.BSM_VARHANDLE_STATIC_FIELD
BSM_VARHANDLE_ARRAYDirectMethodHandleDescconstant · statico.BSM_VARHANDLE_ARRAY
BSM_INVOKEDirectMethodHandleDescconstant · statico.BSM_INVOKE
BSM_EXPLICIT_CASTDirectMethodHandleDescconstant · statico.BSM_EXPLICIT_CAST
CD_intClassDescconstant · statico.CD_int
CD_charClassDescconstant · statico.CD_char
BSM_CLASS_DATADirectMethodHandleDescconstant · statico.BSM_CLASS_DATA
BSM_CLASS_DATA_ATDirectMethodHandleDescconstant · statico.BSM_CLASS_DATA_AT
NULLConstantDescconstant · statico.NULL
TRUEDynamicConstantDescconstant · statico.TRUE
FALSEDynamicConstantDescconstant · statico.FALSE
INIT_NAMEStringconstant · statico.INIT_NAME
CLASS_INIT_NAMEStringconstant · statico.CLASS_INIT_NAME
MTD_voidMethodTypeDescconstant · statico.MTD_void

Methods

MethodRing callJava overloads
ofCallsiteBootstrapofCallsiteBootstrap(owner,name,returnType,paramTypes)static DirectMethodHandleDesc ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc[] paramTypes)
ofConstantBootstrapofConstantBootstrap(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

MethodRing callJava overloads
asTypeasType(type)MethodHandleDesc asType(MethodTypeDesc type)
equalsequals(o)boolean equals(Object o)
invocationTypeinvocationType()MethodTypeDesc invocationType()
isOwnerInterfaceisOwnerInterface()boolean isOwnerInterface()
kindkind()Kind kind()
lookupDescriptorlookupDescriptor()String lookupDescriptor()
methodNamemethodName()String methodName()
ownerowner()ClassDesc owner()
refKindrefKind()int refKind()
resolveConstantDescresolveConstantDesc(lookup)MethodHandle resolveConstantDesc(Lookup lookup)

DirectMethodHandleDescKind#

enum · extends Enum · java.lang.constant.DirectMethodHandleDesc$Kind

Fields

NameTypeAccessIn Ring
STATICKindconstant · statico.STATIC
INTERFACE_STATICKindconstant · statico.INTERFACE_STATIC
VIRTUALKindconstant · statico.VIRTUAL
INTERFACE_VIRTUALKindconstant · statico.INTERFACE_VIRTUAL
SPECIALKindconstant · statico.SPECIAL
INTERFACE_SPECIALKindconstant · statico.INTERFACE_SPECIAL
CONSTRUCTORKindconstant · statico.CONSTRUCTOR
GETTERKindconstant · statico.GETTER
SETTERKindconstant · statico.SETTER
STATIC_GETTERKindconstant · statico.STATIC_GETTER
STATIC_SETTERKindconstant · statico.STATIC_SETTER
refKindintconstanto.refKind
isInterfacebooleanconstanto.isInterface

Methods

MethodRing callJava overloads
valueOfvalueOf(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)
valuesvalues()static Kind[] values()

The methods and fields of Enum are inherited.

DynamicCallSiteDesc#

class final · extends Object · java.lang.constant.DynamicCallSiteDesc

Methods

MethodRing callJava overloads
bootstrapArgsbootstrapArgs()ConstantDesc[] bootstrapArgs()
bootstrapMethodbootstrapMethod()MethodHandleDesc bootstrapMethod()
invocationNameinvocationName()String invocationName()
invocationTypeinvocationType()MethodTypeDesc invocationType()
ofof([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)
resolveCallSiteDescresolveCallSiteDesc(lookup)CallSite resolveCallSiteDesc(Lookup lookup)
withArgswithArgs(bootstrapArgs)DynamicCallSiteDesc withArgs(ConstantDesc[] bootstrapArgs)
withNameAndTypewithNameAndType(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

MethodRing callJava overloads
bootstrapArgsbootstrapArgs()ConstantDesc[] bootstrapArgs()
bootstrapArgsListbootstrapArgsList()List bootstrapArgsList()
bootstrapMethodbootstrapMethod()DirectMethodHandleDesc bootstrapMethod()
constantNameconstantName()String constantName()
constantTypeconstantType()ClassDesc constantType()
ofof(bootstrapMethod)
of([bootstrapMethod,bootstrapArgs])
of([ :bootstrapMethod = v, :bootstrapArgs = v ])
static DynamicConstantDesc of(DirectMethodHandleDesc bootstrapMethod)
static DynamicConstantDesc of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc[] bootstrapArgs)
ofCanonicalofCanonical(bootstrapMethod,constantName,constantType,bootstrapArgs)static ConstantDesc ofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs)
ofNamedofNamed(bootstrapMethod,constantName,constantType,bootstrapArgs)static DynamicConstantDesc ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs)
resolveConstantDescresolveConstantDesc(lookup)Object resolveConstantDesc(Lookup lookup)

The methods and fields of Object are inherited.

MethodHandleDesc#

interface · java.lang.constant.MethodHandleDesc

Extends: ConstantDesc

Methods

MethodRing callJava overloads
asTypeasType(type)MethodHandleDesc asType(MethodTypeDesc type)
equalsequals(o)boolean equals(Object o)
invocationTypeinvocationType()MethodTypeDesc invocationType()
ofof(kind,owner,name,lookupDescriptor)static DirectMethodHandleDesc of(Kind kind, ClassDesc owner, String name, String lookupDescriptor)
ofConstructorofConstructor(owner,paramTypes)static DirectMethodHandleDesc ofConstructor(ClassDesc owner, ClassDesc[] paramTypes)
ofFieldofField(kind,owner,fieldName,fieldType)static DirectMethodHandleDesc ofField(Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType)
ofMethodofMethod(kind,owner,name,lookupMethodType)static DirectMethodHandleDesc ofMethod(Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType)
resolveConstantDescresolveConstantDesc(lookup)MethodHandle resolveConstantDesc(Lookup lookup)

MethodTypeDesc#

interface · java.lang.constant.MethodTypeDesc

Extends: ConstantDesc, TypeDescriptorOfMethod

Methods

MethodRing callJava overloads
changeParameterTypechangeParameterType(index,paramType)MethodTypeDesc changeParameterType(int index, ClassDesc paramType)
changeReturnTypechangeReturnType(returnType)MethodTypeDesc changeReturnType(ClassDesc returnType)
descriptorStringdescriptorString()String descriptorString()
displayDescriptordisplayDescriptor()String displayDescriptor()
dropParameterTypesdropParameterTypes(start,end)MethodTypeDesc dropParameterTypes(int start, int end)
equalsequals(o)boolean equals(Object o)
insertParameterTypesinsertParameterTypes(pos,paramTypes)MethodTypeDesc insertParameterTypes(int pos, ClassDesc[] paramTypes)
ofof(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)
ofDescriptorofDescriptor(descriptor)static MethodTypeDesc ofDescriptor(String descriptor)
parameterArrayparameterArray()ClassDesc[] parameterArray()
parameterCountparameterCount()int parameterCount()
parameterListparameterList()List parameterList()
parameterTypeparameterType(index)ClassDesc parameterType(int index)
resolveConstantDescresolveConstantDesc(lookup)MethodType resolveConstantDesc(Lookup lookup)
returnTypereturnType()ClassDesc returnType()

ModuleDesc#

interface · java.lang.constant.ModuleDesc

Methods

MethodRing callJava overloads
equalsequals(o)boolean equals(Object o)
namename()String name()
ofof(name)static ModuleDesc of(String name)

PackageDesc#

interface · java.lang.constant.PackageDesc

Methods

MethodRing callJava overloads
equalsequals(o)boolean equals(Object o)
internalNameinternalName()String internalName()
namename()String name()
ofof(name)static PackageDesc of(String name)
ofInternalNameofInternalName(name)static PackageDesc ofInternalName(String name)
RingJava - use Java classes and methods from Ring programs.