static CallSite |
LambdaMetafactory.altMetafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
Object... args) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments.
|
MethodHandle |
MethodHandle.asType(MethodType newType) |
Produces an adapter method handle which adapts the type of the
current method handle to a new type.
|
MethodHandle |
MethodHandles.Lookup.bind(Object receiver,
String name,
MethodType type) |
Produces an early-bound method handle for a non-static method.
|
static MethodHandle |
MethodHandles.empty(MethodType type) |
Produces a method handle of the requested type which ignores any arguments, does nothing,
and returns a suitable default depending on the return type.
|
static MethodHandle |
MethodHandles.exactInvoker(MethodType type) |
Produces a special invoker method handle which can be used to
invoke any method handle of the given type, as if by invokeExact .
|
static MethodHandle |
MethodHandles.explicitCastArguments(MethodHandle target,
MethodType newType) |
Produces a method handle which adapts the type of the
given method handle to a new type by pairwise argument and return type conversion.
|
MethodHandle |
MethodHandles.Lookup.findConstructor(Class<?> refc,
MethodType type) |
Produces a method handle which creates an object and initializes it, using
the constructor of the specified type.
|
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> refc,
String name,
MethodType type,
Class<?> specialCaller) |
Produces an early-bound method handle for a virtual method.
|
MethodHandle |
MethodHandles.Lookup.findStatic(Class<?> refc,
String name,
MethodType type) |
Produces a method handle for a static method.
|
MethodHandle |
MethodHandles.Lookup.findVirtual(Class<?> refc,
String name,
MethodType type) |
Produces a method handle for a virtual method.
|
static MethodHandle |
MethodHandles.invoker(MethodType type) |
Produces a special invoker method handle which can be used to
invoke any method handle compatible with the given type, as if by invoke .
|
static CallSite |
StringConcatFactory.makeConcat(MethodHandles.Lookup lookup,
String name,
MethodType concatType) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
StringConcatFactory.makeConcatWithConstants(MethodHandles.Lookup lookup,
String name,
MethodType concatType,
String recipe,
Object... constants) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
LambdaMetafactory.metafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
MethodType samMethodType,
MethodHandle implMethod,
MethodType instantiatedMethodType) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
MethodType ptypes) |
Finds or creates a method type with the given components.
|
static MethodHandle |
MethodHandles.permuteArguments(MethodHandle target,
MethodType newType,
int... reorder) |
Produces a method handle which adapts the calling sequence of the
given method handle to a new type, by reordering the arguments.
|
static MethodHandle |
MethodHandles.spreadInvoker(MethodType type,
int leadingArgCount) |
Produces a method handle which will invoke any method handle of the
given type , with a given number of trailing arguments replaced by
a single trailing Object[] array.
|
static String |
MethodHandleInfo.toString(int kind,
Class<?> defc,
String name,
MethodType type) |
Returns a string representation for a MethodHandleInfo ,
given the four parts of its symbolic reference.
|
static MethodHandle |
MethodHandles.varHandleExactInvoker(VarHandle.AccessMode accessMode,
MethodType type) |
Produces a special invoker method handle which can be used to
invoke a signature-polymorphic access mode method on any VarHandle whose
associated access mode type is compatible with the given type.
|
static MethodHandle |
MethodHandles.varHandleInvoker(VarHandle.AccessMode accessMode,
MethodType type) |
Produces a special invoker method handle which can be used to
invoke a signature-polymorphic access mode method on any VarHandle whose
associated access mode type is compatible with the given type.
|