Google is committed to advancing racial equity for Black communities. See how.

java.lang.invoke

Classes

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.

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.

MethodHandles

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

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.

VolatileCallSite

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

Exceptions

LambdaConversionException

LambdaConversionException

WrongMethodTypeException

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