Java.Lang.Invoke Namespace

Provides method handles, method type descriptors, call sites, and variable handles for dynamic invocation and variable access.

Classes

Name Description
CallSite

A CallSite is a holder for a variable MethodHandle, which is called its target.

ConstantCallSite

A ConstantCallSite is a CallSite whose target is permanent, and can never be changed.

LambdaConversionException

LambdaConversionException

MethodHandle

A method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.

MethodHandleInfo

Provides the legacy class binding for constants and static methods of IMethodHandleInfo. Use that interface instead of this obsolete class.

MethodHandles

This class consists exclusively of static methods that operate on or return method handles.

MethodHandles.Lookup

A <em>lookup object</em> is a factory for creating method handles, when the creation requires access checking.

MethodType

A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.

MutableCallSite

A MutableCallSite is a CallSite whose target variable behaves like an ordinary field.

StringConcatException

StringConcatException is thrown by StringConcatFactory when linkage invariants are violated.

VarHandle

A VarHandle is a dynamically strongly typed reference to a variable, or to a parametrically-defined family of variables, including static fields, non-static fields, array elements, or components of an off-heap data structure.

VarHandle.AccessMode

The set of access modes that specify how a variable, referenced by a VarHandle, is accessed.

VolatileCallSite

A VolatileCallSite is a CallSite whose target acts like a volatile variable.

WrongMethodTypeException

Thrown to indicate that code has attempted to call a method handle via the wrong method type.

Interfaces

Name Description
IMethodHandleInfo

A symbolic reference obtained by cracking a direct method handle into its consitutent symbolic parts.

ITypeDescriptor

An entity that has a type descriptor.

ITypeDescriptor.IOfField

An entity that has a field type descriptor.

ITypeDescriptor.IOfMethod

An entity that has a method type descriptor Method descriptors conforming to JVMS {

Enums

Name Description
MethodLookupModes

Specifies the public, private, protected, and package access bits returned by LookupModes().

ReferenceKind

Specifies the kind of reference used to access a method handle's underlying member.