MethodHandle.InvokeWithArguments Method

Definition

Overloads

InvokeWithArguments(Object[])

Performs a variable arity invocation, passing the arguments in the given list to the method handle, as if via an inexact #invoke invoke from a call site which mentions only the type Object, and whose arity is the length of the argument list.

InvokeWithArguments(IList<Object>)

Performs a variable arity invocation, passing the arguments in the given array to the method handle, as if via an inexact #invoke invoke from a call site which mentions only the type Object, and whose arity is the length of the argument array.

InvokeWithArguments(Object[])

Performs a variable arity invocation, passing the arguments in the given list to the method handle, as if via an inexact #invoke invoke from a call site which mentions only the type Object, and whose arity is the length of the argument list.

[Android.Runtime.Register("invokeWithArguments", "([Ljava/lang/Object;)Ljava/lang/Object;", "GetInvokeWithArguments_arrayLjava_lang_Object_Handler", ApiSince=26)]
public virtual Java.Lang.Object? InvokeWithArguments (params Java.Lang.Object[]? arguments);
[<Android.Runtime.Register("invokeWithArguments", "([Ljava/lang/Object;)Ljava/lang/Object;", "GetInvokeWithArguments_arrayLjava_lang_Object_Handler", ApiSince=26)>]
abstract member InvokeWithArguments : Java.Lang.Object[] -> Java.Lang.Object
override this.InvokeWithArguments : Java.Lang.Object[] -> Java.Lang.Object

Parameters

arguments
Object[]

the arguments to pass to the target

Returns

the result returned by the target

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandle.invokeWithArguments(java.lang.Object).

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

InvokeWithArguments(IList<Object>)

Performs a variable arity invocation, passing the arguments in the given array to the method handle, as if via an inexact #invoke invoke from a call site which mentions only the type Object, and whose arity is the length of the argument array.

[Android.Runtime.Register("invokeWithArguments", "(Ljava/util/List;)Ljava/lang/Object;", "GetInvokeWithArguments_Ljava_util_List_Handler", ApiSince=26)]
public virtual Java.Lang.Object? InvokeWithArguments (System.Collections.Generic.IList<object>? arguments);
[<Android.Runtime.Register("invokeWithArguments", "(Ljava/util/List;)Ljava/lang/Object;", "GetInvokeWithArguments_Ljava_util_List_Handler", ApiSince=26)>]
abstract member InvokeWithArguments : System.Collections.Generic.IList<obj> -> Java.Lang.Object
override this.InvokeWithArguments : System.Collections.Generic.IList<obj> -> Java.Lang.Object

Parameters

arguments
IList<Object>

the arguments to pass to the target

Returns

the result returned by the target

Attributes

Remarks

Performs a variable arity invocation, passing the arguments in the given array to the method handle, as if via an inexact #invoke invoke from a call site which mentions only the type Object, and whose arity is the length of the argument array.

This method is also equivalent to the following code: <blockquote>

{@code
              invokeWithArguments(arguments.toArray()
            }

</blockquote>

Java documentation for java.lang.invoke.MethodHandle.invokeWithArguments(java.util.List<?>).

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