MethodHandle |
MethodHandle.asCollector(int collectPosition,
Class<?> arrayClass,
int collectCount) |
Returns a MethodHandle that collects the requested incoming arguments, which must match the
types in MethodType incomingArgs, into an array of arrayClass, called T.
|
MethodHandle |
MethodHandle.asCollector(Class<?> arrayClass,
int collectCount) |
Returns a MethodHandle that collects the requested incoming arguments, which must match the
types in MethodType incomingArgs, into an array of arrayClass, called T.
|
MethodHandle |
MethodHandle.asSpreader(int spreadPosition,
Class<?> arrayClass,
int spreadCount) |
Produce a MethodHandle that has an array of type arrayClass as its argument at the specified position
and replaces the array with spreadCount arguments from the array before calling the original MethodHandle.
|
MethodHandle |
MethodHandle.asSpreader(Class<?> arrayClass,
int spreadCount) |
Produce a MethodHandle that has an array of type arrayClass as its last argument and replaces the
array with spreadCount arguments from the array before calling the original MethodHandle.
|
static MethodHandle |
MethodHandles.explicitCastArguments(MethodHandle handle,
MethodType type) |
Produce an adapter that converts the incoming arguments from type to the underlying MethodHandle's type
and converts the return value as required.
|
Object |
MethodHandle.invoke(Object... args) |
Invoke the receiver MethodHandle against the supplied arguments.
|
Object |
MethodHandle.invokeExact(Object... args) |
Invoke the receiver MethodHandle against the supplied arguments.
|
Object |
MethodHandle.invokeWithArguments(Object... args) |
Invoke the MethodHandle using an Object[] of arguments.
|
Object |
MethodHandle.invokeWithArguments(List<?> args) |
|
abstract void |
CallSite.setTarget(MethodHandle nextTarget) |
Set the CallSite's target to be nextTarget.
|
void |
VolatileCallSite.setTarget(MethodHandle nextTarget) |
Set the CallSite's target to be nextTarget.
|