MethodHandles.DropArguments Method

Definition

Overloads

DropArguments(MethodHandle, Int32, Class[])

Produces a method handle which will discard some dummy arguments before calling some other specified target method handle.

DropArguments(MethodHandle, Int32, IList<Class>)

Produces a method handle which will discard some dummy arguments before calling some other specified target method handle.

DropArguments(MethodHandle, Int32, Class[])

Produces a method handle which will discard some dummy arguments before calling some other specified target method handle.

[Android.Runtime.Register("dropArguments", "(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? DropArguments (Java.Lang.Invoke.MethodHandle? target, int pos, params Java.Lang.Class[]? valueTypes);
[<Android.Runtime.Register("dropArguments", "(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member DropArguments : Java.Lang.Invoke.MethodHandle * int * Java.Lang.Class[] -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to invoke after the arguments are dropped

pos
Int32

position of first argument to drop (zero for the leftmost)

valueTypes
Class[]

the type(s) of the argument(s) to drop

Returns

MethodHandle

a method handle which drops arguments of the given types, before calling the original method handle

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.dropArguments(java.lang.invoke.MethodHandle, int, java.lang.Class).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DropArguments(MethodHandle, Int32, IList<Class>)

Produces a method handle which will discard some dummy arguments before calling some other specified target method handle.

[Android.Runtime.Register("dropArguments", "(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? DropArguments (Java.Lang.Invoke.MethodHandle? target, int pos, System.Collections.Generic.IList<Java.Lang.Class>? valueTypes);
[<Android.Runtime.Register("dropArguments", "(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member DropArguments : Java.Lang.Invoke.MethodHandle * int * System.Collections.Generic.IList<Java.Lang.Class> -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to invoke after the arguments are dropped

pos
Int32

position of first argument to drop (zero for the leftmost)

valueTypes
IList<Class>

the type(s) of the argument(s) to drop

Returns

MethodHandle

a method handle which drops arguments of the given types, before calling the original method handle

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.dropArguments(java.lang.invoke.MethodHandle, int, java.util.List<java.lang.Class<?>>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to