java.lang.invoke
25 classes of the module java.base.
Load them with:
using {
"java.lang.invoke"
}
CallSite#
abstract · extends Object · java.lang.invoke.CallSite
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dynamicInvoker | dynamicInvoker() | MethodHandle dynamicInvoker() |
getTarget | getTarget() | MethodHandle getTarget() |
setTarget | setTarget(newTarget) | void setTarget(MethodHandle newTarget) |
type | type() | MethodType type() |
The methods and fields of Object are inherited.
ConstantBootstraps#
class final · extends Object · java.lang.invoke.ConstantBootstraps
Methods
| Method | Ring call | Java overloads |
|---|---|---|
arrayVarHandle | arrayVarHandle(lookup,name,type,arrayClass) | static VarHandle arrayVarHandle(Lookup lookup, String name, Class type, Class arrayClass) |
enumConstant | enumConstant(lookup,name,type) | static Enum enumConstant(Lookup lookup, String name, Class type) |
explicitCast | explicitCast(lookup,name,dstType,value) | static Object explicitCast(Lookup lookup, String name, Class dstType, Object value) |
fieldVarHandle | fieldVarHandle(lookup,name,type,declaringClass,fieldType) | static VarHandle fieldVarHandle(Lookup lookup, String name, Class type, Class declaringClass, Class fieldType) |
getStaticFinal | getStaticFinal([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) |
invoke | invoke(lookup,name,type,handle,args) | static Object invoke(Lookup lookup, String name, Class type, MethodHandle handle, Object[] args) |
nullConstant | nullConstant(lookup,name,type) | static Object nullConstant(Lookup lookup, String name, Class type) |
primitiveClass | primitiveClass(lookup,name,type) | static Class primitiveClass(Lookup lookup, String name, Class type) |
staticFieldVarHandle | staticFieldVarHandle(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
| Name | Type | Access | In Ring |
|---|---|---|---|
FLAG_SERIALIZABLE | int | constant · static | o.FLAG_SERIALIZABLE |
FLAG_MARKERS | int | constant · static | o.FLAG_MARKERS |
FLAG_BRIDGES | int | constant · static | o.FLAG_BRIDGES |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
altMetafactory | altMetafactory(caller,interfaceMethodName,factoryType,args) | static CallSite altMetafactory(Lookup caller, String interfaceMethodName, MethodType factoryType, Object[] args) |
metafactory | metafactory(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
| Method | Ring call | Java overloads |
|---|---|---|
asCollector | asCollector([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) |
asFixedArity | asFixedArity() | MethodHandle asFixedArity() |
asSpreader | asSpreader([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) |
asType | asType(newType) | MethodHandle asType(MethodType newType) |
asVarargsCollector | asVarargsCollector(arrayType) | MethodHandle asVarargsCollector(Class arrayType) |
bindTo | bindTo(x) | MethodHandle bindTo(Object x) |
describeConstable | describeConstable() | Optional describeConstable() |
invoke | invoke(args) | Object invoke(Object[] args) |
invokeExact | invokeExact(args) | Object invokeExact(Object[] args) |
invokeWithArguments | invokeWithArguments(arguments) | Object invokeWithArguments(List arguments)Object invokeWithArguments(Object[] arguments) |
isVarargsCollector | isVarargsCollector() | boolean isVarargsCollector() |
type | type() | MethodType type() |
withVarargs | withVarargs(makeVarargs) | MethodHandle withVarargs(boolean makeVarargs) |
The methods and fields of Object are inherited.
MethodHandleInfo#
interface · java.lang.invoke.MethodHandleInfo
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
REF_getField | int | constant · static | o.REF_getField |
REF_getStatic | int | constant · static | o.REF_getStatic |
REF_putField | int | constant · static | o.REF_putField |
REF_putStatic | int | constant · static | o.REF_putStatic |
REF_invokeVirtual | int | constant · static | o.REF_invokeVirtual |
REF_invokeStatic | int | constant · static | o.REF_invokeStatic |
REF_invokeSpecial | int | constant · static | o.REF_invokeSpecial |
REF_newInvokeSpecial | int | constant · static | o.REF_newInvokeSpecial |
REF_invokeInterface | int | constant · static | o.REF_invokeInterface |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@toString | @toString(kind,defc,name,type) | static String toString(int kind, Class defc, String name, MethodType type) |
getDeclaringClass | getDeclaringClass() | Class getDeclaringClass() |
getMethodType | getMethodType() | MethodType getMethodType() |
getModifiers | getModifiers() | int getModifiers() |
getName | getName() | String getName() |
getReferenceKind | getReferenceKind() | int getReferenceKind() |
isVarArgs | isVarArgs() | boolean isVarArgs() |
referenceKindToString | referenceKindToString(referenceKind) | static String referenceKindToString(int referenceKind) |
reflectAs | reflectAs(expected,lookup) | Member reflectAs(Class expected, Lookup lookup) |
MethodHandleProxies#
class final · extends Object · java.lang.invoke.MethodHandleProxies
Methods
| Method | Ring call | Java overloads |
|---|---|---|
asInterfaceInstance | asInterfaceInstance(intfc,target) | static Object asInterfaceInstance(Class intfc, MethodHandle target) |
isWrapperInstance | isWrapperInstance(x) | static boolean isWrapperInstance(Object x) |
wrapperInstanceTarget | wrapperInstanceTarget(x) | static MethodHandle wrapperInstanceTarget(Object x) |
wrapperInstanceType | wrapperInstanceType(x) | static Class wrapperInstanceType(Object x) |
The methods and fields of Object are inherited.
MethodHandles#
class final · extends Object · java.lang.invoke.MethodHandles
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@loop | @loop(clauses) | static MethodHandle loop(MethodHandle[][] clauses) |
arrayConstructor | arrayConstructor(arrayClass) | static MethodHandle arrayConstructor(Class arrayClass) |
arrayElementGetter | arrayElementGetter(arrayClass) | static MethodHandle arrayElementGetter(Class arrayClass) |
arrayElementSetter | arrayElementSetter(arrayClass) | static MethodHandle arrayElementSetter(Class arrayClass) |
arrayElementVarHandle | arrayElementVarHandle(arrayClass) | static VarHandle arrayElementVarHandle(Class arrayClass) |
arrayLength | arrayLength(arrayClass) | static MethodHandle arrayLength(Class arrayClass) |
byteArrayViewVarHandle | byteArrayViewVarHandle(viewArrayClass,byteOrder) | static VarHandle byteArrayViewVarHandle(Class viewArrayClass, ByteOrder byteOrder) |
byteBufferViewVarHandle | byteBufferViewVarHandle(viewArrayClass,byteOrder) | static VarHandle byteBufferViewVarHandle(Class viewArrayClass, ByteOrder byteOrder) |
catchException | catchException(target,exType,handler) | static MethodHandle catchException(MethodHandle target, Class exType, MethodHandle handler) |
classData | classData(caller,name,type) | static Object classData(Lookup caller, String name, Class type) |
classDataAt | classDataAt(caller,name,type,index) | static Object classDataAt(Lookup caller, String name, Class type, int index) |
collectArguments | collectArguments(target,pos,filter) | static MethodHandle collectArguments(MethodHandle target, int pos, MethodHandle filter) |
collectCoordinates | collectCoordinates(target,pos,filter) | static VarHandle collectCoordinates(VarHandle target, int pos, MethodHandle filter) |
constant | constant(type,value) | static MethodHandle constant(Class type, Object value) |
countedLoop | countedLoop([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) |
doWhileLoop | doWhileLoop(init,body,pred) | static MethodHandle doWhileLoop(MethodHandle init, MethodHandle body, MethodHandle pred) |
dropArguments | dropArguments(target,pos,valueTypes) | static MethodHandle dropArguments(MethodHandle target, int pos, Class[] valueTypes)static MethodHandle dropArguments(MethodHandle target, int pos, List valueTypes) |
dropArgumentsToMatch | dropArgumentsToMatch(target,skip,newTypes,pos) | static MethodHandle dropArgumentsToMatch(MethodHandle target, int skip, List newTypes, int pos) |
dropCoordinates | dropCoordinates(target,pos,valueTypes) | static VarHandle dropCoordinates(VarHandle target, int pos, Class[] valueTypes) |
dropReturn | dropReturn(target) | static MethodHandle dropReturn(MethodHandle target) |
empty | empty(type) | static MethodHandle empty(MethodType type) |
exactInvoker | exactInvoker(type) | static MethodHandle exactInvoker(MethodType type) |
explicitCastArguments | explicitCastArguments(target,newType) | static MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) |
filterArguments | filterArguments(target,pos,filters) | static MethodHandle filterArguments(MethodHandle target, int pos, MethodHandle[] filters) |
filterCoordinates | filterCoordinates(target,pos,filters) | static VarHandle filterCoordinates(VarHandle target, int pos, MethodHandle[] filters) |
filterReturnValue | filterReturnValue(target,filter) | static MethodHandle filterReturnValue(MethodHandle target, MethodHandle filter) |
filterValue | filterValue(target,filterToTarget,filterFromTarget) | static VarHandle filterValue(VarHandle target, MethodHandle filterToTarget, MethodHandle filterFromTarget) |
foldArguments | foldArguments([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) |
guardWithTest | guardWithTest(test,target,fallback) | static MethodHandle guardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) |
identity | identity(type) | static MethodHandle identity(Class type) |
insertArguments | insertArguments(target,pos,values) | static MethodHandle insertArguments(MethodHandle target, int pos, Object[] values) |
insertCoordinates | insertCoordinates(target,pos,values) | static VarHandle insertCoordinates(VarHandle target, int pos, Object[] values) |
invoker | invoker(type) | static MethodHandle invoker(MethodType type) |
iteratedLoop | iteratedLoop(iterator,init,body) | static MethodHandle iteratedLoop(MethodHandle iterator, MethodHandle init, MethodHandle body) |
lookup | lookup() | static Lookup lookup() |
permuteArguments | permuteArguments(target,newType,reorder) | static MethodHandle permuteArguments(MethodHandle target, MethodType newType, int[] reorder) |
permuteCoordinates | permuteCoordinates(target,newCoordinates,reorder) | static VarHandle permuteCoordinates(VarHandle target, List newCoordinates, int[] reorder) |
privateLookupIn | privateLookupIn(targetClass,caller) | static Lookup privateLookupIn(Class targetClass, Lookup caller) |
publicLookup | publicLookup() | static Lookup publicLookup() |
reflectAs | reflectAs(expected,target) | static Member reflectAs(Class expected, MethodHandle target) |
spreadInvoker | spreadInvoker(type,leadingArgCount) | static MethodHandle spreadInvoker(MethodType type, int leadingArgCount) |
tableSwitch | tableSwitch(fallback,targets) | static MethodHandle tableSwitch(MethodHandle fallback, MethodHandle[] targets) |
throwException | throwException(returnType,exType) | static MethodHandle throwException(Class returnType, Class exType) |
tryFinally | tryFinally(target,cleanup) | static MethodHandle tryFinally(MethodHandle target, MethodHandle cleanup) |
varHandleExactInvoker | varHandleExactInvoker(accessMode,type) | static MethodHandle varHandleExactInvoker(AccessMode accessMode, MethodType type) |
varHandleInvoker | varHandleInvoker(accessMode,type) | static MethodHandle varHandleInvoker(AccessMode accessMode, MethodType type) |
whileLoop | whileLoop(init,pred,body) | static MethodHandle whileLoop(MethodHandle init, MethodHandle pred, MethodHandle body) |
zero | zero(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
| Name | Type | Access | In Ring |
|---|---|---|---|
PUBLIC | int | constant · static | o.PUBLIC |
PRIVATE | int | constant · static | o.@PRIVATE |
PROTECTED | int | constant · static | o.PROTECTED |
PACKAGE | int | constant · static | o.@PACKAGE |
MODULE | int | constant · static | o.MODULE |
UNCONDITIONAL | int | constant · static | o.UNCONDITIONAL |
ORIGINAL | int | constant · static | o.ORIGINAL |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accessClass | accessClass(targetClass) | Class accessClass(Class targetClass) |
bind | bind(receiver,name,type) | MethodHandle bind(Object receiver, String name, MethodType type) |
defineClass | defineClass(bytes) | Class defineClass(byte[] bytes) |
defineHiddenClass | defineHiddenClass(bytes,initialize,options) | Lookup defineHiddenClass(byte[] bytes, boolean initialize, ClassOption[] options) |
defineHiddenClassWithClassData | defineHiddenClassWithClassData(bytes,classData,initialize,options) | Lookup defineHiddenClassWithClassData(byte[] bytes, Object classData, boolean initialize, ClassOption[] options) |
dropLookupMode | dropLookupMode(modeToDrop) | Lookup dropLookupMode(int modeToDrop) |
ensureInitialized | ensureInitialized(targetClass) | Class ensureInitialized(Class targetClass) |
findClass | findClass(targetName) | Class findClass(String targetName) |
findConstructor | findConstructor(refc,type) | MethodHandle findConstructor(Class refc, MethodType type) |
findGetter | findGetter(refc,name,type) | MethodHandle findGetter(Class refc, String name, Class type) |
findSetter | findSetter(refc,name,type) | MethodHandle findSetter(Class refc, String name, Class type) |
findSpecial | findSpecial(refc,name,type,specialCaller) | MethodHandle findSpecial(Class refc, String name, MethodType type, Class specialCaller) |
findStatic | findStatic(refc,name,type) | MethodHandle findStatic(Class refc, String name, MethodType type) |
findStaticGetter | findStaticGetter(refc,name,type) | MethodHandle findStaticGetter(Class refc, String name, Class type) |
findStaticSetter | findStaticSetter(refc,name,type) | MethodHandle findStaticSetter(Class refc, String name, Class type) |
findStaticVarHandle | findStaticVarHandle(decl,name,type) | VarHandle findStaticVarHandle(Class decl, String name, Class type) |
findVarHandle | findVarHandle(recv,name,type) | VarHandle findVarHandle(Class recv, String name, Class type) |
findVirtual | findVirtual(refc,name,type) | MethodHandle findVirtual(Class refc, String name, MethodType type) |
hasFullPrivilegeAccess | hasFullPrivilegeAccess() | boolean hasFullPrivilegeAccess() |
hasPrivateAccess | hasPrivateAccess() | boolean hasPrivateAccess() |
in | in(requestedLookupClass) | Lookup in(Class requestedLookupClass) |
lookupClass | lookupClass() | Class lookupClass() |
lookupModes | lookupModes() | int lookupModes() |
previousLookupClass | previousLookupClass() | Class previousLookupClass() |
revealDirect | revealDirect(target) | MethodHandleInfo revealDirect(MethodHandle target) |
unreflect | unreflect(m) | MethodHandle unreflect(Method m) |
unreflectConstructor | unreflectConstructor(c) | MethodHandle unreflectConstructor(Constructor c) |
unreflectGetter | unreflectGetter(f) | MethodHandle unreflectGetter(Field f) |
unreflectSetter | unreflectSetter(f) | MethodHandle unreflectSetter(Field f) |
unreflectSpecial | unreflectSpecial(m,specialCaller) | MethodHandle unreflectSpecial(Method m, Class specialCaller) |
unreflectVarHandle | unreflectVarHandle(f) | VarHandle unreflectVarHandle(Field f) |
The methods and fields of Object are inherited.
MethodHandlesLookupClassOption#
enum · extends Enum · java.lang.invoke.MethodHandles$Lookup$ClassOption
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NESTMATE | ClassOption | constant · static | o.NESTMATE |
STRONG | ClassOption | constant · static | o.STRONG |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static ClassOption valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | 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
| Method | Ring call | Java overloads |
|---|---|---|
appendParameterTypes | appendParameterTypes(ptypesToInsert) | MethodType appendParameterTypes(Class[] ptypesToInsert)MethodType appendParameterTypes(List ptypesToInsert) |
changeParameterType | changeParameterType(num,nptype) | MethodType changeParameterType(int num, Class nptype) |
changeReturnType | changeReturnType(nrtype) | MethodType changeReturnType(Class nrtype) |
describeConstable | describeConstable() | Optional describeConstable() |
descriptorString | descriptorString() | String descriptorString() |
dropParameterTypes | dropParameterTypes(start,end) | MethodType dropParameterTypes(int start, int end) |
erase | erase() | MethodType erase() |
fromMethodDescriptorString | fromMethodDescriptorString(descriptor,loader) | static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) |
generic | generic() | MethodType generic() |
genericMethodType | genericMethodType(objectArgCount)genericMethodType([objectArgCount,finalArray])genericMethodType([ :objectArgCount = v, :finalArray = v ]) | static MethodType genericMethodType(int objectArgCount)static MethodType genericMethodType(int objectArgCount, boolean finalArray) |
hasPrimitives | hasPrimitives() | boolean hasPrimitives() |
hasWrappers | hasWrappers() | boolean hasWrappers() |
insertParameterTypes | insertParameterTypes(num,ptypesToInsert) | MethodType insertParameterTypes(int num, Class[] ptypesToInsert)MethodType insertParameterTypes(int num, List ptypesToInsert) |
lastParameterType | lastParameterType() | Class lastParameterType() |
methodType | methodType(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) |
parameterArray | parameterArray() | Class[] parameterArray() |
parameterCount | parameterCount() | int parameterCount() |
parameterList | parameterList() | List parameterList() |
parameterType | parameterType(num) | Class parameterType(int num) |
returnType | returnType() | Class returnType() |
toMethodDescriptorString | toMethodDescriptorString() | String toMethodDescriptorString() |
unwrap | unwrap() | MethodType unwrap() |
wrap | wrap() | 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
| Method | Ring call | Java overloads |
|---|---|---|
syncAll | syncAll(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
| Method | Ring call | Java overloads |
|---|---|---|
getCapturedArg | getCapturedArg(i) | Object getCapturedArg(int i) |
getCapturedArgCount | getCapturedArgCount() | int getCapturedArgCount() |
getCapturingClass | getCapturingClass() | String getCapturingClass() |
getFunctionalInterfaceClass | getFunctionalInterfaceClass() | String getFunctionalInterfaceClass() |
getFunctionalInterfaceMethodName | getFunctionalInterfaceMethodName() | String getFunctionalInterfaceMethodName() |
getFunctionalInterfaceMethodSignature | getFunctionalInterfaceMethodSignature() | String getFunctionalInterfaceMethodSignature() |
getImplClass | getImplClass() | String getImplClass() |
getImplMethodKind | getImplMethodKind() | int getImplMethodKind() |
getImplMethodName | getImplMethodName() | String getImplMethodName() |
getImplMethodSignature | getImplMethodSignature() | String getImplMethodSignature() |
getInstantiatedMethodType | getInstantiatedMethodType() | 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
| Method | Ring call | Java overloads |
|---|---|---|
makeConcat | makeConcat(lookup,name,concatType) | static CallSite makeConcat(Lookup lookup, String name, MethodType concatType) |
makeConcatWithConstants | makeConcatWithConstants(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
| Method | Ring call | Java overloads |
|---|---|---|
guardWithTest | guardWithTest(target,fallback) | MethodHandle guardWithTest(MethodHandle target, MethodHandle fallback) |
hasBeenInvalidated | hasBeenInvalidated() | boolean hasBeenInvalidated() |
invalidateAll | invalidateAll(switchPoints) | static void invalidateAll(SwitchPoint[] switchPoints) |
The methods and fields of Object are inherited.
TypeDescriptor#
interface · java.lang.invoke.TypeDescriptor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
descriptorString | descriptorString() | String descriptorString() |
TypeDescriptorOfField#
interface · java.lang.invoke.TypeDescriptor$OfField
Extends: TypeDescriptor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
arrayType | arrayType() | OfField arrayType() |
componentType | componentType() | OfField componentType() |
descriptorString | descriptorString() | String descriptorString() |
isArray | isArray() | boolean isArray() |
isPrimitive | isPrimitive() | boolean isPrimitive() |
TypeDescriptorOfMethod#
interface · java.lang.invoke.TypeDescriptor$OfMethod
Extends: TypeDescriptor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
changeParameterType | changeParameterType(index,paramType) | OfMethod changeParameterType(int index, OfField paramType) |
changeReturnType | changeReturnType(newReturn) | OfMethod changeReturnType(OfField newReturn) |
descriptorString | descriptorString() | String descriptorString() |
dropParameterTypes | dropParameterTypes(start,end) | OfMethod dropParameterTypes(int start, int end) |
insertParameterTypes | insertParameterTypes(pos,paramTypes) | OfMethod insertParameterTypes(int pos, OfField[] paramTypes) |
parameterArray | parameterArray() | OfField[] parameterArray() |
parameterCount | parameterCount() | int parameterCount() |
parameterList | parameterList() | List parameterList() |
parameterType | parameterType(i) | OfField parameterType(int i) |
returnType | returnType() | OfField returnType() |
VarHandle#
abstract · extends Object · java.lang.invoke.VarHandle
Implements: Constable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(args) | Object get(Object[] args) |
accessModeType | accessModeType(accessMode) | MethodType accessModeType(AccessMode accessMode) |
acquireFence | acquireFence() | static void acquireFence() |
compareAndExchange | compareAndExchange(args) | Object compareAndExchange(Object[] args) |
compareAndExchangeAcquire | compareAndExchangeAcquire(args) | Object compareAndExchangeAcquire(Object[] args) |
compareAndExchangeRelease | compareAndExchangeRelease(args) | Object compareAndExchangeRelease(Object[] args) |
compareAndSet | compareAndSet(args) | boolean compareAndSet(Object[] args) |
coordinateTypes | coordinateTypes() | List coordinateTypes() |
describeConstable | describeConstable() | Optional describeConstable() |
fullFence | fullFence() | static void fullFence() |
getAcquire | getAcquire(args) | Object getAcquire(Object[] args) |
getAndAdd | getAndAdd(args) | Object getAndAdd(Object[] args) |
getAndAddAcquire | getAndAddAcquire(args) | Object getAndAddAcquire(Object[] args) |
getAndAddRelease | getAndAddRelease(args) | Object getAndAddRelease(Object[] args) |
getAndBitwiseAnd | getAndBitwiseAnd(args) | Object getAndBitwiseAnd(Object[] args) |
getAndBitwiseAndAcquire | getAndBitwiseAndAcquire(args) | Object getAndBitwiseAndAcquire(Object[] args) |
getAndBitwiseAndRelease | getAndBitwiseAndRelease(args) | Object getAndBitwiseAndRelease(Object[] args) |
getAndBitwiseOr | getAndBitwiseOr(args) | Object getAndBitwiseOr(Object[] args) |
getAndBitwiseOrAcquire | getAndBitwiseOrAcquire(args) | Object getAndBitwiseOrAcquire(Object[] args) |
getAndBitwiseOrRelease | getAndBitwiseOrRelease(args) | Object getAndBitwiseOrRelease(Object[] args) |
getAndBitwiseXor | getAndBitwiseXor(args) | Object getAndBitwiseXor(Object[] args) |
getAndBitwiseXorAcquire | getAndBitwiseXorAcquire(args) | Object getAndBitwiseXorAcquire(Object[] args) |
getAndBitwiseXorRelease | getAndBitwiseXorRelease(args) | Object getAndBitwiseXorRelease(Object[] args) |
getAndSet | getAndSet(args) | Object getAndSet(Object[] args) |
getAndSetAcquire | getAndSetAcquire(args) | Object getAndSetAcquire(Object[] args) |
getAndSetRelease | getAndSetRelease(args) | Object getAndSetRelease(Object[] args) |
getOpaque | getOpaque(args) | Object getOpaque(Object[] args) |
getVolatile | getVolatile(args) | Object getVolatile(Object[] args) |
hasInvokeExactBehavior | hasInvokeExactBehavior() | boolean hasInvokeExactBehavior() |
isAccessModeSupported | isAccessModeSupported(accessMode) | boolean isAccessModeSupported(AccessMode accessMode) |
loadLoadFence | loadLoadFence() | static void loadLoadFence() |
releaseFence | releaseFence() | static void releaseFence() |
set | set(args) | void set(Object[] args) |
setOpaque | setOpaque(args) | void setOpaque(Object[] args) |
setRelease | setRelease(args) | void setRelease(Object[] args) |
setVolatile | setVolatile(args) | void setVolatile(Object[] args) |
storeStoreFence | storeStoreFence() | static void storeStoreFence() |
toMethodHandle | toMethodHandle(accessMode) | MethodHandle toMethodHandle(AccessMode accessMode) |
varType | varType() | Class varType() |
weakCompareAndSet | weakCompareAndSet(args) | boolean weakCompareAndSet(Object[] args) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(args) | boolean weakCompareAndSetAcquire(Object[] args) |
weakCompareAndSetPlain | weakCompareAndSetPlain(args) | boolean weakCompareAndSetPlain(Object[] args) |
weakCompareAndSetRelease | weakCompareAndSetRelease(args) | boolean weakCompareAndSetRelease(Object[] args) |
withInvokeBehavior | withInvokeBehavior() | VarHandle withInvokeBehavior() |
withInvokeExactBehavior | withInvokeExactBehavior() | VarHandle withInvokeExactBehavior() |
The methods and fields of Object are inherited.
VarHandleAccessMode#
enum · extends Enum · java.lang.invoke.VarHandle$AccessMode
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
GET | AccessMode | constant · static | o.@GET |
SET | AccessMode | constant · static | o.SET |
GET_VOLATILE | AccessMode | constant · static | o.GET_VOLATILE |
SET_VOLATILE | AccessMode | constant · static | o.SET_VOLATILE |
GET_ACQUIRE | AccessMode | constant · static | o.GET_ACQUIRE |
SET_RELEASE | AccessMode | constant · static | o.SET_RELEASE |
GET_OPAQUE | AccessMode | constant · static | o.GET_OPAQUE |
SET_OPAQUE | AccessMode | constant · static | o.SET_OPAQUE |
COMPARE_AND_SET | AccessMode | constant · static | o.COMPARE_AND_SET |
COMPARE_AND_EXCHANGE | AccessMode | constant · static | o.COMPARE_AND_EXCHANGE |
COMPARE_AND_EXCHANGE_ACQUIRE | AccessMode | constant · static | o.COMPARE_AND_EXCHANGE_ACQUIRE |
COMPARE_AND_EXCHANGE_RELEASE | AccessMode | constant · static | o.COMPARE_AND_EXCHANGE_RELEASE |
WEAK_COMPARE_AND_SET_PLAIN | AccessMode | constant · static | o.WEAK_COMPARE_AND_SET_PLAIN |
WEAK_COMPARE_AND_SET | AccessMode | constant · static | o.WEAK_COMPARE_AND_SET |
WEAK_COMPARE_AND_SET_ACQUIRE | AccessMode | constant · static | o.WEAK_COMPARE_AND_SET_ACQUIRE |
WEAK_COMPARE_AND_SET_RELEASE | AccessMode | constant · static | o.WEAK_COMPARE_AND_SET_RELEASE |
GET_AND_SET | AccessMode | constant · static | o.GET_AND_SET |
GET_AND_SET_ACQUIRE | AccessMode | constant · static | o.GET_AND_SET_ACQUIRE |
GET_AND_SET_RELEASE | AccessMode | constant · static | o.GET_AND_SET_RELEASE |
GET_AND_ADD | AccessMode | constant · static | o.GET_AND_ADD |
GET_AND_ADD_ACQUIRE | AccessMode | constant · static | o.GET_AND_ADD_ACQUIRE |
GET_AND_ADD_RELEASE | AccessMode | constant · static | o.GET_AND_ADD_RELEASE |
GET_AND_BITWISE_OR | AccessMode | constant · static | o.GET_AND_BITWISE_OR |
GET_AND_BITWISE_OR_RELEASE | AccessMode | constant · static | o.GET_AND_BITWISE_OR_RELEASE |
GET_AND_BITWISE_OR_ACQUIRE | AccessMode | constant · static | o.GET_AND_BITWISE_OR_ACQUIRE |
GET_AND_BITWISE_AND | AccessMode | constant · static | o.GET_AND_BITWISE_AND |
GET_AND_BITWISE_AND_RELEASE | AccessMode | constant · static | o.GET_AND_BITWISE_AND_RELEASE |
GET_AND_BITWISE_AND_ACQUIRE | AccessMode | constant · static | o.GET_AND_BITWISE_AND_ACQUIRE |
GET_AND_BITWISE_XOR | AccessMode | constant · static | o.GET_AND_BITWISE_XOR |
GET_AND_BITWISE_XOR_RELEASE | AccessMode | constant · static | o.GET_AND_BITWISE_XOR_RELEASE |
GET_AND_BITWISE_XOR_ACQUIRE | AccessMode | constant · static | o.GET_AND_BITWISE_XOR_ACQUIRE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
methodName | methodName() | String methodName() |
valueFromMethodName | valueFromMethodName(methodName) | static AccessMode valueFromMethodName(String methodName) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static AccessMode valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static AccessMode[] values() |
The methods and fields of Enum are inherited.
VarHandleVarHandleDesc#
class final · extends DynamicConstantDesc · java.lang.invoke.VarHandle$VarHandleDesc
Methods
| Method | Ring call | Java overloads |
|---|---|---|
ofArray | ofArray(arrayClass) | static VarHandleDesc ofArray(ClassDesc arrayClass) |
ofField | ofField(declaringClass,name,fieldType) | static VarHandleDesc ofField(ClassDesc declaringClass, String name, ClassDesc fieldType) |
ofStaticField | ofStaticField(declaringClass,name,fieldType) | static VarHandleDesc ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType) |
varType | varType() | 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.