RingJavafor Ring

java.lang.invoke

25 classes of the module java.base.

Load them with:

using {
	"java.lang.invoke"
}

All packages

CallSite#

abstract · extends Object · java.lang.invoke.CallSite

Methods

MethodRing callJava overloads
dynamicInvokerdynamicInvoker()MethodHandle dynamicInvoker()
getTargetgetTarget()MethodHandle getTarget()
setTargetsetTarget(newTarget)void setTarget(MethodHandle newTarget)
typetype()MethodType type()

The methods and fields of Object are inherited.

ConstantBootstraps#

class final · extends Object · java.lang.invoke.ConstantBootstraps

Methods

MethodRing callJava overloads
arrayVarHandlearrayVarHandle(lookup,name,type,arrayClass)static VarHandle arrayVarHandle(Lookup lookup, String name, Class type, Class arrayClass)
enumConstantenumConstant(lookup,name,type)static Enum enumConstant(Lookup lookup, String name, Class type)
explicitCastexplicitCast(lookup,name,dstType,value)static Object explicitCast(Lookup lookup, String name, Class dstType, Object value)
fieldVarHandlefieldVarHandle(lookup,name,type,declaringClass,fieldType)static VarHandle fieldVarHandle(Lookup lookup, String name, Class type, Class declaringClass, Class fieldType)
getStaticFinalgetStaticFinal([lookup,name,type])
getStaticFinal([ :lookup = v, :name = v, :type = v ])
getStaticFinal([lookup,name,type,declaringClass])
getStaticFinal([ :lookup = v, :name = v, :type = v, :declaringClass = v ])
static Object getStaticFinal(Lookup lookup, String name, Class type)
static Object getStaticFinal(Lookup lookup, String name, Class type, Class declaringClass)
invokeinvoke(lookup,name,type,handle,args)static Object invoke(Lookup lookup, String name, Class type, MethodHandle handle, Object[] args)
nullConstantnullConstant(lookup,name,type)static Object nullConstant(Lookup lookup, String name, Class type)
primitiveClassprimitiveClass(lookup,name,type)static Class primitiveClass(Lookup lookup, String name, Class type)
staticFieldVarHandlestaticFieldVarHandle(lookup,name,type,declaringClass,fieldType)static VarHandle staticFieldVarHandle(Lookup lookup, String name, Class type, Class declaringClass, Class fieldType)

The methods and fields of Object are inherited.

ConstantCallSite#

class · extends CallSite · java.lang.invoke.ConstantCallSite

Constructors

new ConstantCallSite(MethodHandle target)

Ring: new ConstantCallSite(args) uses the constructor with the fewest parameters (at least one); new ConstantCallSite makes the object with the constructor without parameters; the others: (new ConstantCallSite).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of CallSite are inherited.

LambdaConversionException#

class · extends Exception · java.lang.invoke.LambdaConversionException

Constructors

new LambdaConversionException()
new LambdaConversionException(Throwable cause)
new LambdaConversionException(String message)
new LambdaConversionException(String message, Throwable cause)
new LambdaConversionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

Ring: new LambdaConversionException(args) uses the constructor with the fewest parameters (at least one); new LambdaConversionException makes the object with the constructor without parameters; the others: (new LambdaConversionException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

LambdaMetafactory#

class final · extends Object · java.lang.invoke.LambdaMetafactory

Fields

NameTypeAccessIn Ring
FLAG_SERIALIZABLEintconstant · statico.FLAG_SERIALIZABLE
FLAG_MARKERSintconstant · statico.FLAG_MARKERS
FLAG_BRIDGESintconstant · statico.FLAG_BRIDGES

Methods

MethodRing callJava overloads
altMetafactoryaltMetafactory(caller,interfaceMethodName,factoryType,args)static CallSite altMetafactory(Lookup caller, String interfaceMethodName, MethodType factoryType, Object[] args)
metafactorymetafactory(caller,interfaceMethodName,factoryType,interfaceMethodType,implementation,dynamicMethodType)static CallSite metafactory(Lookup caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType)

The methods and fields of Object are inherited.

MethodHandle#

abstract · extends Object · java.lang.invoke.MethodHandle

Implements: Constable

Methods

MethodRing callJava overloads
asCollectorasCollector([arrayType,arrayLength])
asCollector([ :arrayType = v, :arrayLength = v ])
asCollector([collectArgPos,arrayType,arrayLength])
asCollector([ :collectArgPos = v, :arrayType = v, :arrayLength = v ])
MethodHandle asCollector(Class arrayType, int arrayLength)
MethodHandle asCollector(int collectArgPos, Class arrayType, int arrayLength)
asFixedArityasFixedArity()MethodHandle asFixedArity()
asSpreaderasSpreader([arrayType,arrayLength])
asSpreader([ :arrayType = v, :arrayLength = v ])
asSpreader([spreadArgPos,arrayType,arrayLength])
asSpreader([ :spreadArgPos = v, :arrayType = v, :arrayLength = v ])
MethodHandle asSpreader(Class arrayType, int arrayLength)
MethodHandle asSpreader(int spreadArgPos, Class arrayType, int arrayLength)
asTypeasType(newType)MethodHandle asType(MethodType newType)
asVarargsCollectorasVarargsCollector(arrayType)MethodHandle asVarargsCollector(Class arrayType)
bindTobindTo(x)MethodHandle bindTo(Object x)
describeConstabledescribeConstable()Optional describeConstable()
invokeinvoke(args)Object invoke(Object[] args)
invokeExactinvokeExact(args)Object invokeExact(Object[] args)
invokeWithArgumentsinvokeWithArguments(arguments)Object invokeWithArguments(List arguments)
Object invokeWithArguments(Object[] arguments)
isVarargsCollectorisVarargsCollector()boolean isVarargsCollector()
typetype()MethodType type()
withVarargswithVarargs(makeVarargs)MethodHandle withVarargs(boolean makeVarargs)

The methods and fields of Object are inherited.

MethodHandleInfo#

interface · java.lang.invoke.MethodHandleInfo

Fields

NameTypeAccessIn Ring
REF_getFieldintconstant · statico.REF_getField
REF_getStaticintconstant · statico.REF_getStatic
REF_putFieldintconstant · statico.REF_putField
REF_putStaticintconstant · statico.REF_putStatic
REF_invokeVirtualintconstant · statico.REF_invokeVirtual
REF_invokeStaticintconstant · statico.REF_invokeStatic
REF_invokeSpecialintconstant · statico.REF_invokeSpecial
REF_newInvokeSpecialintconstant · statico.REF_newInvokeSpecial
REF_invokeInterfaceintconstant · statico.REF_invokeInterface

Methods

MethodRing callJava overloads
@toString@toString(kind,defc,name,type)static String toString(int kind, Class defc, String name, MethodType type)
getDeclaringClassgetDeclaringClass()Class getDeclaringClass()
getMethodTypegetMethodType()MethodType getMethodType()
getModifiersgetModifiers()int getModifiers()
getNamegetName()String getName()
getReferenceKindgetReferenceKind()int getReferenceKind()
isVarArgsisVarArgs()boolean isVarArgs()
referenceKindToStringreferenceKindToString(referenceKind)static String referenceKindToString(int referenceKind)
reflectAsreflectAs(expected,lookup)Member reflectAs(Class expected, Lookup lookup)

MethodHandleProxies#

class final · extends Object · java.lang.invoke.MethodHandleProxies

Methods

MethodRing callJava overloads
asInterfaceInstanceasInterfaceInstance(intfc,target)static Object asInterfaceInstance(Class intfc, MethodHandle target)
isWrapperInstanceisWrapperInstance(x)static boolean isWrapperInstance(Object x)
wrapperInstanceTargetwrapperInstanceTarget(x)static MethodHandle wrapperInstanceTarget(Object x)
wrapperInstanceTypewrapperInstanceType(x)static Class wrapperInstanceType(Object x)

The methods and fields of Object are inherited.

MethodHandles#

class final · extends Object · java.lang.invoke.MethodHandles

Methods

MethodRing callJava overloads
@loop@loop(clauses)static MethodHandle loop(MethodHandle[][] clauses)
arrayConstructorarrayConstructor(arrayClass)static MethodHandle arrayConstructor(Class arrayClass)
arrayElementGetterarrayElementGetter(arrayClass)static MethodHandle arrayElementGetter(Class arrayClass)
arrayElementSetterarrayElementSetter(arrayClass)static MethodHandle arrayElementSetter(Class arrayClass)
arrayElementVarHandlearrayElementVarHandle(arrayClass)static VarHandle arrayElementVarHandle(Class arrayClass)
arrayLengtharrayLength(arrayClass)static MethodHandle arrayLength(Class arrayClass)
byteArrayViewVarHandlebyteArrayViewVarHandle(viewArrayClass,byteOrder)static VarHandle byteArrayViewVarHandle(Class viewArrayClass, ByteOrder byteOrder)
byteBufferViewVarHandlebyteBufferViewVarHandle(viewArrayClass,byteOrder)static VarHandle byteBufferViewVarHandle(Class viewArrayClass, ByteOrder byteOrder)
catchExceptioncatchException(target,exType,handler)static MethodHandle catchException(MethodHandle target, Class exType, MethodHandle handler)
classDataclassData(caller,name,type)static Object classData(Lookup caller, String name, Class type)
classDataAtclassDataAt(caller,name,type,index)static Object classDataAt(Lookup caller, String name, Class type, int index)
collectArgumentscollectArguments(target,pos,filter)static MethodHandle collectArguments(MethodHandle target, int pos, MethodHandle filter)
collectCoordinatescollectCoordinates(target,pos,filter)static VarHandle collectCoordinates(VarHandle target, int pos, MethodHandle filter)
constantconstant(type,value)static MethodHandle constant(Class type, Object value)
countedLoopcountedLoop([iterations,init,body])
countedLoop([ :iterations = v, :init = v, :body = v ])
countedLoop([start,end,init,body])
countedLoop([ :start = v, :end = v, :init = v, :body = v ])
static MethodHandle countedLoop(MethodHandle iterations, MethodHandle init, MethodHandle body)
static MethodHandle countedLoop(MethodHandle start, MethodHandle end, MethodHandle init, MethodHandle body)
doWhileLoopdoWhileLoop(init,body,pred)static MethodHandle doWhileLoop(MethodHandle init, MethodHandle body, MethodHandle pred)
dropArgumentsdropArguments(target,pos,valueTypes)static MethodHandle dropArguments(MethodHandle target, int pos, Class[] valueTypes)
static MethodHandle dropArguments(MethodHandle target, int pos, List valueTypes)
dropArgumentsToMatchdropArgumentsToMatch(target,skip,newTypes,pos)static MethodHandle dropArgumentsToMatch(MethodHandle target, int skip, List newTypes, int pos)
dropCoordinatesdropCoordinates(target,pos,valueTypes)static VarHandle dropCoordinates(VarHandle target, int pos, Class[] valueTypes)
dropReturndropReturn(target)static MethodHandle dropReturn(MethodHandle target)
emptyempty(type)static MethodHandle empty(MethodType type)
exactInvokerexactInvoker(type)static MethodHandle exactInvoker(MethodType type)
explicitCastArgumentsexplicitCastArguments(target,newType)static MethodHandle explicitCastArguments(MethodHandle target, MethodType newType)
filterArgumentsfilterArguments(target,pos,filters)static MethodHandle filterArguments(MethodHandle target, int pos, MethodHandle[] filters)
filterCoordinatesfilterCoordinates(target,pos,filters)static VarHandle filterCoordinates(VarHandle target, int pos, MethodHandle[] filters)
filterReturnValuefilterReturnValue(target,filter)static MethodHandle filterReturnValue(MethodHandle target, MethodHandle filter)
filterValuefilterValue(target,filterToTarget,filterFromTarget)static VarHandle filterValue(VarHandle target, MethodHandle filterToTarget, MethodHandle filterFromTarget)
foldArgumentsfoldArguments([target,combiner])
foldArguments([ :target = v, :combiner = v ])
foldArguments([target,pos,combiner])
foldArguments([ :target = v, :pos = v, :combiner = v ])
static MethodHandle foldArguments(MethodHandle target, MethodHandle combiner)
static MethodHandle foldArguments(MethodHandle target, int pos, MethodHandle combiner)
guardWithTestguardWithTest(test,target,fallback)static MethodHandle guardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback)
identityidentity(type)static MethodHandle identity(Class type)
insertArgumentsinsertArguments(target,pos,values)static MethodHandle insertArguments(MethodHandle target, int pos, Object[] values)
insertCoordinatesinsertCoordinates(target,pos,values)static VarHandle insertCoordinates(VarHandle target, int pos, Object[] values)
invokerinvoker(type)static MethodHandle invoker(MethodType type)
iteratedLoopiteratedLoop(iterator,init,body)static MethodHandle iteratedLoop(MethodHandle iterator, MethodHandle init, MethodHandle body)
lookuplookup()static Lookup lookup()
permuteArgumentspermuteArguments(target,newType,reorder)static MethodHandle permuteArguments(MethodHandle target, MethodType newType, int[] reorder)
permuteCoordinatespermuteCoordinates(target,newCoordinates,reorder)static VarHandle permuteCoordinates(VarHandle target, List newCoordinates, int[] reorder)
privateLookupInprivateLookupIn(targetClass,caller)static Lookup privateLookupIn(Class targetClass, Lookup caller)
publicLookuppublicLookup()static Lookup publicLookup()
reflectAsreflectAs(expected,target)static Member reflectAs(Class expected, MethodHandle target)
spreadInvokerspreadInvoker(type,leadingArgCount)static MethodHandle spreadInvoker(MethodType type, int leadingArgCount)
tableSwitchtableSwitch(fallback,targets)static MethodHandle tableSwitch(MethodHandle fallback, MethodHandle[] targets)
throwExceptionthrowException(returnType,exType)static MethodHandle throwException(Class returnType, Class exType)
tryFinallytryFinally(target,cleanup)static MethodHandle tryFinally(MethodHandle target, MethodHandle cleanup)
varHandleExactInvokervarHandleExactInvoker(accessMode,type)static MethodHandle varHandleExactInvoker(AccessMode accessMode, MethodType type)
varHandleInvokervarHandleInvoker(accessMode,type)static MethodHandle varHandleInvoker(AccessMode accessMode, MethodType type)
whileLoopwhileLoop(init,pred,body)static MethodHandle whileLoop(MethodHandle init, MethodHandle pred, MethodHandle body)
zerozero(type)static MethodHandle zero(Class type)

The methods and fields of Object are inherited.

MethodHandlesLookup#

class final · extends Object · java.lang.invoke.MethodHandles$Lookup

Fields

NameTypeAccessIn Ring
PUBLICintconstant · statico.PUBLIC
PRIVATEintconstant · statico.@PRIVATE
PROTECTEDintconstant · statico.PROTECTED
PACKAGEintconstant · statico.@PACKAGE
MODULEintconstant · statico.MODULE
UNCONDITIONALintconstant · statico.UNCONDITIONAL
ORIGINALintconstant · statico.ORIGINAL

Methods

MethodRing callJava overloads
accessClassaccessClass(targetClass)Class accessClass(Class targetClass)
bindbind(receiver,name,type)MethodHandle bind(Object receiver, String name, MethodType type)
defineClassdefineClass(bytes)Class defineClass(byte[] bytes)
defineHiddenClassdefineHiddenClass(bytes,initialize,options)Lookup defineHiddenClass(byte[] bytes, boolean initialize, ClassOption[] options)
defineHiddenClassWithClassDatadefineHiddenClassWithClassData(bytes,classData,initialize,options)Lookup defineHiddenClassWithClassData(byte[] bytes, Object classData, boolean initialize, ClassOption[] options)
dropLookupModedropLookupMode(modeToDrop)Lookup dropLookupMode(int modeToDrop)
ensureInitializedensureInitialized(targetClass)Class ensureInitialized(Class targetClass)
findClassfindClass(targetName)Class findClass(String targetName)
findConstructorfindConstructor(refc,type)MethodHandle findConstructor(Class refc, MethodType type)
findGetterfindGetter(refc,name,type)MethodHandle findGetter(Class refc, String name, Class type)
findSetterfindSetter(refc,name,type)MethodHandle findSetter(Class refc, String name, Class type)
findSpecialfindSpecial(refc,name,type,specialCaller)MethodHandle findSpecial(Class refc, String name, MethodType type, Class specialCaller)
findStaticfindStatic(refc,name,type)MethodHandle findStatic(Class refc, String name, MethodType type)
findStaticGetterfindStaticGetter(refc,name,type)MethodHandle findStaticGetter(Class refc, String name, Class type)
findStaticSetterfindStaticSetter(refc,name,type)MethodHandle findStaticSetter(Class refc, String name, Class type)
findStaticVarHandlefindStaticVarHandle(decl,name,type)VarHandle findStaticVarHandle(Class decl, String name, Class type)
findVarHandlefindVarHandle(recv,name,type)VarHandle findVarHandle(Class recv, String name, Class type)
findVirtualfindVirtual(refc,name,type)MethodHandle findVirtual(Class refc, String name, MethodType type)
hasFullPrivilegeAccesshasFullPrivilegeAccess()boolean hasFullPrivilegeAccess()
hasPrivateAccesshasPrivateAccess()boolean hasPrivateAccess()
inin(requestedLookupClass)Lookup in(Class requestedLookupClass)
lookupClasslookupClass()Class lookupClass()
lookupModeslookupModes()int lookupModes()
previousLookupClasspreviousLookupClass()Class previousLookupClass()
revealDirectrevealDirect(target)MethodHandleInfo revealDirect(MethodHandle target)
unreflectunreflect(m)MethodHandle unreflect(Method m)
unreflectConstructorunreflectConstructor(c)MethodHandle unreflectConstructor(Constructor c)
unreflectGetterunreflectGetter(f)MethodHandle unreflectGetter(Field f)
unreflectSetterunreflectSetter(f)MethodHandle unreflectSetter(Field f)
unreflectSpecialunreflectSpecial(m,specialCaller)MethodHandle unreflectSpecial(Method m, Class specialCaller)
unreflectVarHandleunreflectVarHandle(f)VarHandle unreflectVarHandle(Field f)

The methods and fields of Object are inherited.

MethodHandlesLookupClassOption#

enum · extends Enum · java.lang.invoke.MethodHandles$Lookup$ClassOption

Fields

NameTypeAccessIn Ring
NESTMATEClassOptionconstant · statico.NESTMATE
STRONGClassOptionconstant · statico.STRONG

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static ClassOption valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static ClassOption[] values()

The methods and fields of Enum are inherited.

MethodType#

class final · extends Object · java.lang.invoke.MethodType

Implements: Constable, TypeDescriptorOfMethod, Serializable

Methods

MethodRing callJava overloads
appendParameterTypesappendParameterTypes(ptypesToInsert)MethodType appendParameterTypes(Class[] ptypesToInsert)
MethodType appendParameterTypes(List ptypesToInsert)
changeParameterTypechangeParameterType(num,nptype)MethodType changeParameterType(int num, Class nptype)
changeReturnTypechangeReturnType(nrtype)MethodType changeReturnType(Class nrtype)
describeConstabledescribeConstable()Optional describeConstable()
descriptorStringdescriptorString()String descriptorString()
dropParameterTypesdropParameterTypes(start,end)MethodType dropParameterTypes(int start, int end)
eraseerase()MethodType erase()
fromMethodDescriptorStringfromMethodDescriptorString(descriptor,loader)static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader)
genericgeneric()MethodType generic()
genericMethodTypegenericMethodType(objectArgCount)
genericMethodType([objectArgCount,finalArray])
genericMethodType([ :objectArgCount = v, :finalArray = v ])
static MethodType genericMethodType(int objectArgCount)
static MethodType genericMethodType(int objectArgCount, boolean finalArray)
hasPrimitiveshasPrimitives()boolean hasPrimitives()
hasWrappershasWrappers()boolean hasWrappers()
insertParameterTypesinsertParameterTypes(num,ptypesToInsert)MethodType insertParameterTypes(int num, Class[] ptypesToInsert)
MethodType insertParameterTypes(int num, List ptypesToInsert)
lastParameterTypelastParameterType()Class lastParameterType()
methodTypemethodType(rtype)
methodType([rtype,ptypes])
methodType([ :rtype = v, :ptypes = v ])
methodType([rtype,ptype0,ptypes])
methodType([ :rtype = v, :ptype0 = v, :ptypes = v ])
static MethodType methodType(Class rtype)
static MethodType methodType(Class rtype, List ptypes)
static MethodType methodType(Class rtype, Class[] ptypes)
static MethodType methodType(Class rtype, Class ptype0)
static MethodType methodType(Class rtype, MethodType ptypes)
static MethodType methodType(Class rtype, Class ptype0, Class[] ptypes)
parameterArrayparameterArray()Class[] parameterArray()
parameterCountparameterCount()int parameterCount()
parameterListparameterList()List parameterList()
parameterTypeparameterType(num)Class parameterType(int num)
returnTypereturnType()Class returnType()
toMethodDescriptorStringtoMethodDescriptorString()String toMethodDescriptorString()
unwrapunwrap()MethodType unwrap()
wrapwrap()MethodType wrap()

The methods and fields of Object are inherited.

MutableCallSite#

class · extends CallSite · java.lang.invoke.MutableCallSite

Constructors

new MutableCallSite(MethodType type)
new MutableCallSite(MethodHandle target)

Ring: new MutableCallSite(args) uses the constructor with the fewest parameters (at least one); new MutableCallSite makes the object with the constructor without parameters; the others: (new MutableCallSite).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
syncAllsyncAll(sites)static void syncAll(MutableCallSite[] sites)

The methods and fields of CallSite are inherited.

SerializedLambda#

class final · extends Object · java.lang.invoke.SerializedLambda

Implements: Serializable

Constructors

new SerializedLambda(Class capturingClass, String functionalInterfaceClass, String functionalInterfaceMethodName, String functionalInterfaceMethodSignature, int implMethodKind, String implClass, String implMethodName, String implMethodSignature, String instantiatedMethodType, Object[] capturedArgs)

Ring: new SerializedLambda(args) uses the constructor with the fewest parameters (at least one); new SerializedLambda makes the object with the constructor without parameters; the others: (new SerializedLambda).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getCapturedArggetCapturedArg(i)Object getCapturedArg(int i)
getCapturedArgCountgetCapturedArgCount()int getCapturedArgCount()
getCapturingClassgetCapturingClass()String getCapturingClass()
getFunctionalInterfaceClassgetFunctionalInterfaceClass()String getFunctionalInterfaceClass()
getFunctionalInterfaceMethodNamegetFunctionalInterfaceMethodName()String getFunctionalInterfaceMethodName()
getFunctionalInterfaceMethodSignaturegetFunctionalInterfaceMethodSignature()String getFunctionalInterfaceMethodSignature()
getImplClassgetImplClass()String getImplClass()
getImplMethodKindgetImplMethodKind()int getImplMethodKind()
getImplMethodNamegetImplMethodName()String getImplMethodName()
getImplMethodSignaturegetImplMethodSignature()String getImplMethodSignature()
getInstantiatedMethodTypegetInstantiatedMethodType()String getInstantiatedMethodType()

The methods and fields of Object are inherited.

StringConcatException#

class · extends Exception · java.lang.invoke.StringConcatException

Constructors

new StringConcatException(String msg)
new StringConcatException(String msg, Throwable cause)

Ring: new StringConcatException(args) uses the constructor with the fewest parameters (at least one); new StringConcatException makes the object with the constructor without parameters; the others: (new StringConcatException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

StringConcatFactory#

class final · extends Object · java.lang.invoke.StringConcatFactory

Methods

MethodRing callJava overloads
makeConcatmakeConcat(lookup,name,concatType)static CallSite makeConcat(Lookup lookup, String name, MethodType concatType)
makeConcatWithConstantsmakeConcatWithConstants(lookup,name,concatType,recipe,constants)static CallSite makeConcatWithConstants(Lookup lookup, String name, MethodType concatType, String recipe, Object[] constants)

The methods and fields of Object are inherited.

SwitchPoint#

class · extends Object · java.lang.invoke.SwitchPoint

Constructors

new SwitchPoint()

Ring: new SwitchPoint(args) uses the constructor with the fewest parameters (at least one); new SwitchPoint makes the object with the constructor without parameters; the others: (new SwitchPoint).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
guardWithTestguardWithTest(target,fallback)MethodHandle guardWithTest(MethodHandle target, MethodHandle fallback)
hasBeenInvalidatedhasBeenInvalidated()boolean hasBeenInvalidated()
invalidateAllinvalidateAll(switchPoints)static void invalidateAll(SwitchPoint[] switchPoints)

The methods and fields of Object are inherited.

TypeDescriptor#

interface · java.lang.invoke.TypeDescriptor

Methods

MethodRing callJava overloads
descriptorStringdescriptorString()String descriptorString()

TypeDescriptorOfField#

interface · java.lang.invoke.TypeDescriptor$OfField

Extends: TypeDescriptor

Methods

MethodRing callJava overloads
arrayTypearrayType()OfField arrayType()
componentTypecomponentType()OfField componentType()
descriptorStringdescriptorString()String descriptorString()
isArrayisArray()boolean isArray()
isPrimitiveisPrimitive()boolean isPrimitive()

TypeDescriptorOfMethod#

interface · java.lang.invoke.TypeDescriptor$OfMethod

Extends: TypeDescriptor

Methods

MethodRing callJava overloads
changeParameterTypechangeParameterType(index,paramType)OfMethod changeParameterType(int index, OfField paramType)
changeReturnTypechangeReturnType(newReturn)OfMethod changeReturnType(OfField newReturn)
descriptorStringdescriptorString()String descriptorString()
dropParameterTypesdropParameterTypes(start,end)OfMethod dropParameterTypes(int start, int end)
insertParameterTypesinsertParameterTypes(pos,paramTypes)OfMethod insertParameterTypes(int pos, OfField[] paramTypes)
parameterArrayparameterArray()OfField[] parameterArray()
parameterCountparameterCount()int parameterCount()
parameterListparameterList()List parameterList()
parameterTypeparameterType(i)OfField parameterType(int i)
returnTypereturnType()OfField returnType()

VarHandle#

abstract · extends Object · java.lang.invoke.VarHandle

Implements: Constable

Methods

MethodRing callJava overloads
@get@get(args)Object get(Object[] args)
accessModeTypeaccessModeType(accessMode)MethodType accessModeType(AccessMode accessMode)
acquireFenceacquireFence()static void acquireFence()
compareAndExchangecompareAndExchange(args)Object compareAndExchange(Object[] args)
compareAndExchangeAcquirecompareAndExchangeAcquire(args)Object compareAndExchangeAcquire(Object[] args)
compareAndExchangeReleasecompareAndExchangeRelease(args)Object compareAndExchangeRelease(Object[] args)
compareAndSetcompareAndSet(args)boolean compareAndSet(Object[] args)
coordinateTypescoordinateTypes()List coordinateTypes()
describeConstabledescribeConstable()Optional describeConstable()
fullFencefullFence()static void fullFence()
getAcquiregetAcquire(args)Object getAcquire(Object[] args)
getAndAddgetAndAdd(args)Object getAndAdd(Object[] args)
getAndAddAcquiregetAndAddAcquire(args)Object getAndAddAcquire(Object[] args)
getAndAddReleasegetAndAddRelease(args)Object getAndAddRelease(Object[] args)
getAndBitwiseAndgetAndBitwiseAnd(args)Object getAndBitwiseAnd(Object[] args)
getAndBitwiseAndAcquiregetAndBitwiseAndAcquire(args)Object getAndBitwiseAndAcquire(Object[] args)
getAndBitwiseAndReleasegetAndBitwiseAndRelease(args)Object getAndBitwiseAndRelease(Object[] args)
getAndBitwiseOrgetAndBitwiseOr(args)Object getAndBitwiseOr(Object[] args)
getAndBitwiseOrAcquiregetAndBitwiseOrAcquire(args)Object getAndBitwiseOrAcquire(Object[] args)
getAndBitwiseOrReleasegetAndBitwiseOrRelease(args)Object getAndBitwiseOrRelease(Object[] args)
getAndBitwiseXorgetAndBitwiseXor(args)Object getAndBitwiseXor(Object[] args)
getAndBitwiseXorAcquiregetAndBitwiseXorAcquire(args)Object getAndBitwiseXorAcquire(Object[] args)
getAndBitwiseXorReleasegetAndBitwiseXorRelease(args)Object getAndBitwiseXorRelease(Object[] args)
getAndSetgetAndSet(args)Object getAndSet(Object[] args)
getAndSetAcquiregetAndSetAcquire(args)Object getAndSetAcquire(Object[] args)
getAndSetReleasegetAndSetRelease(args)Object getAndSetRelease(Object[] args)
getOpaquegetOpaque(args)Object getOpaque(Object[] args)
getVolatilegetVolatile(args)Object getVolatile(Object[] args)
hasInvokeExactBehaviorhasInvokeExactBehavior()boolean hasInvokeExactBehavior()
isAccessModeSupportedisAccessModeSupported(accessMode)boolean isAccessModeSupported(AccessMode accessMode)
loadLoadFenceloadLoadFence()static void loadLoadFence()
releaseFencereleaseFence()static void releaseFence()
setset(args)void set(Object[] args)
setOpaquesetOpaque(args)void setOpaque(Object[] args)
setReleasesetRelease(args)void setRelease(Object[] args)
setVolatilesetVolatile(args)void setVolatile(Object[] args)
storeStoreFencestoreStoreFence()static void storeStoreFence()
toMethodHandletoMethodHandle(accessMode)MethodHandle toMethodHandle(AccessMode accessMode)
varTypevarType()Class varType()
weakCompareAndSetweakCompareAndSet(args)boolean weakCompareAndSet(Object[] args)
weakCompareAndSetAcquireweakCompareAndSetAcquire(args)boolean weakCompareAndSetAcquire(Object[] args)
weakCompareAndSetPlainweakCompareAndSetPlain(args)boolean weakCompareAndSetPlain(Object[] args)
weakCompareAndSetReleaseweakCompareAndSetRelease(args)boolean weakCompareAndSetRelease(Object[] args)
withInvokeBehaviorwithInvokeBehavior()VarHandle withInvokeBehavior()
withInvokeExactBehaviorwithInvokeExactBehavior()VarHandle withInvokeExactBehavior()

The methods and fields of Object are inherited.

VarHandleAccessMode#

enum · extends Enum · java.lang.invoke.VarHandle$AccessMode

Fields

NameTypeAccessIn Ring
GETAccessModeconstant · statico.@GET
SETAccessModeconstant · statico.SET
GET_VOLATILEAccessModeconstant · statico.GET_VOLATILE
SET_VOLATILEAccessModeconstant · statico.SET_VOLATILE
GET_ACQUIREAccessModeconstant · statico.GET_ACQUIRE
SET_RELEASEAccessModeconstant · statico.SET_RELEASE
GET_OPAQUEAccessModeconstant · statico.GET_OPAQUE
SET_OPAQUEAccessModeconstant · statico.SET_OPAQUE
COMPARE_AND_SETAccessModeconstant · statico.COMPARE_AND_SET
COMPARE_AND_EXCHANGEAccessModeconstant · statico.COMPARE_AND_EXCHANGE
COMPARE_AND_EXCHANGE_ACQUIREAccessModeconstant · statico.COMPARE_AND_EXCHANGE_ACQUIRE
COMPARE_AND_EXCHANGE_RELEASEAccessModeconstant · statico.COMPARE_AND_EXCHANGE_RELEASE
WEAK_COMPARE_AND_SET_PLAINAccessModeconstant · statico.WEAK_COMPARE_AND_SET_PLAIN
WEAK_COMPARE_AND_SETAccessModeconstant · statico.WEAK_COMPARE_AND_SET
WEAK_COMPARE_AND_SET_ACQUIREAccessModeconstant · statico.WEAK_COMPARE_AND_SET_ACQUIRE
WEAK_COMPARE_AND_SET_RELEASEAccessModeconstant · statico.WEAK_COMPARE_AND_SET_RELEASE
GET_AND_SETAccessModeconstant · statico.GET_AND_SET
GET_AND_SET_ACQUIREAccessModeconstant · statico.GET_AND_SET_ACQUIRE
GET_AND_SET_RELEASEAccessModeconstant · statico.GET_AND_SET_RELEASE
GET_AND_ADDAccessModeconstant · statico.GET_AND_ADD
GET_AND_ADD_ACQUIREAccessModeconstant · statico.GET_AND_ADD_ACQUIRE
GET_AND_ADD_RELEASEAccessModeconstant · statico.GET_AND_ADD_RELEASE
GET_AND_BITWISE_ORAccessModeconstant · statico.GET_AND_BITWISE_OR
GET_AND_BITWISE_OR_RELEASEAccessModeconstant · statico.GET_AND_BITWISE_OR_RELEASE
GET_AND_BITWISE_OR_ACQUIREAccessModeconstant · statico.GET_AND_BITWISE_OR_ACQUIRE
GET_AND_BITWISE_ANDAccessModeconstant · statico.GET_AND_BITWISE_AND
GET_AND_BITWISE_AND_RELEASEAccessModeconstant · statico.GET_AND_BITWISE_AND_RELEASE
GET_AND_BITWISE_AND_ACQUIREAccessModeconstant · statico.GET_AND_BITWISE_AND_ACQUIRE
GET_AND_BITWISE_XORAccessModeconstant · statico.GET_AND_BITWISE_XOR
GET_AND_BITWISE_XOR_RELEASEAccessModeconstant · statico.GET_AND_BITWISE_XOR_RELEASE
GET_AND_BITWISE_XOR_ACQUIREAccessModeconstant · statico.GET_AND_BITWISE_XOR_ACQUIRE

Methods

MethodRing callJava overloads
methodNamemethodName()String methodName()
valueFromMethodNamevalueFromMethodName(methodName)static AccessMode valueFromMethodName(String methodName)
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static AccessMode valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static AccessMode[] values()

The methods and fields of Enum are inherited.

VarHandleVarHandleDesc#

class final · extends DynamicConstantDesc · java.lang.invoke.VarHandle$VarHandleDesc

Methods

MethodRing callJava overloads
ofArrayofArray(arrayClass)static VarHandleDesc ofArray(ClassDesc arrayClass)
ofFieldofField(declaringClass,name,fieldType)static VarHandleDesc ofField(ClassDesc declaringClass, String name, ClassDesc fieldType)
ofStaticFieldofStaticField(declaringClass,name,fieldType)static VarHandleDesc ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType)
varTypevarType()ClassDesc varType()

The methods and fields of DynamicConstantDesc are inherited.

VolatileCallSite#

class · extends CallSite · java.lang.invoke.VolatileCallSite

Constructors

new VolatileCallSite(MethodType type)
new VolatileCallSite(MethodHandle target)

Ring: new VolatileCallSite(args) uses the constructor with the fewest parameters (at least one); new VolatileCallSite makes the object with the constructor without parameters; the others: (new VolatileCallSite).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of CallSite are inherited.

WrongMethodTypeException#

class · extends RuntimeException · java.lang.invoke.WrongMethodTypeException

Constructors

new WrongMethodTypeException()
new WrongMethodTypeException(String s)

Ring: new WrongMethodTypeException(args) uses the constructor with the fewest parameters (at least one); new WrongMethodTypeException makes the object with the constructor without parameters; the others: (new WrongMethodTypeException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

RingJava - use Java classes and methods from Ring programs.