MethodType.InvokeMethodType Method

Definition

Overloads

InvokeMethodType(Class, IList<Class>)

Finds or creates a method type with the given components.

InvokeMethodType(Class, MethodType)

Finds or creates a method type with the given components.

InvokeMethodType(Class, Class, Class[])

Finds or creates a method type with the given components.

InvokeMethodType(Class, Class)

Finds or creates a method type with the given components.

InvokeMethodType(Class)

Finds or creates a method type with the given components.

InvokeMethodType(Class, Class[])

Finds or creates an instance of the given method type.

InvokeMethodType(Class, IList<Class>)

Finds or creates a method type with the given components.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype, System.Collections.Generic.IList<Java.Lang.Class>? ptypes);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class * System.Collections.Generic.IList<Java.Lang.Class> -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

ptypes
IList<Class>

the parameter types

Returns

a method type with the given components

Attributes

Remarks

Finds or creates a method type with the given components. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType.

Java documentation for java.lang.invoke.MethodType.methodType(java.lang.Class<?>, 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

InvokeMethodType(Class, MethodType)

Finds or creates a method type with the given components.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype, Java.Lang.Invoke.MethodType? ptypes);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class * Java.Lang.Invoke.MethodType -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

ptypes
MethodType

the method type which supplies the parameter types

Returns

a method type with the given components

Attributes

Remarks

Finds or creates a method type with the given components. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. The resulting method has the same parameter types as ptypes, and the specified return type.

Java documentation for java.lang.invoke.MethodType.methodType(java.lang.Class<?>, java.lang.invoke.MethodType).

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

InvokeMethodType(Class, Class, Class[])

Finds or creates a method type with the given components.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype, Java.Lang.Class? ptype0, params Java.Lang.Class[]? ptypes);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class * Java.Lang.Class * Java.Lang.Class[] -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

ptype0
Class
ptypes
Class[]

Returns

a method type with the given return value

Attributes

Remarks

Java documentation for java.lang.invoke.MethodType.methodType(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

InvokeMethodType(Class, Class)

Finds or creates a method type with the given components.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype, Java.Lang.Class? ptype0);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class * Java.Lang.Class -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

ptype0
Class

the parameter type

Returns

a method type with the given return value and parameter type

Attributes

Remarks

Finds or creates a method type with the given components. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. The resulting method has the single given parameter type.

Java documentation for java.lang.invoke.MethodType.methodType(java.lang.Class<?>, 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

InvokeMethodType(Class)

Finds or creates a method type with the given components.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

Returns

a method type with the given return value

Attributes

Remarks

Finds or creates a method type with the given components. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. The resulting method has no parameter types.

Java documentation for java.lang.invoke.MethodType.methodType(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

InvokeMethodType(Class, Class[])

Finds or creates an instance of the given method type.

[Android.Runtime.Register("methodType", "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? InvokeMethodType (Java.Lang.Class? rtype, Java.Lang.Class[]? ptypes);
[<Android.Runtime.Register("methodType", "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member InvokeMethodType : Java.Lang.Class * Java.Lang.Class[] -> Java.Lang.Invoke.MethodType

Parameters

rtype
Class

the return type

ptypes
Class[]

the parameter types

Returns

a method type with the given components

Attributes

Remarks

Finds or creates an instance of the given method type.

Java documentation for java.lang.invoke.MethodType.methodType(java.lang.Class<?>, 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