Udostępnij za pośrednictwem


IMethodHandleInfo.ToString(ReferenceKind, Class, String, MethodType) Method

Definition

Returns a string representation for a MethodHandleInfo, given the four parts of its symbolic reference.

[Android.Runtime.Register("toString", "(ILjava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/String;", "", ApiSince=26)]
public static string? ToString (Java.Lang.Invoke.ReferenceKind kind, Java.Lang.Class? defc, string? name, Java.Lang.Invoke.MethodType? type);
[<Android.Runtime.Register("toString", "(ILjava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/String;", "", ApiSince=26)>]
static member ToString : Java.Lang.Invoke.ReferenceKind * Java.Lang.Class * string * Java.Lang.Invoke.MethodType -> string

Parameters

kind
ReferenceKind

the #getReferenceKind reference kind part of the symbolic reference

defc
Class

the #getDeclaringClass declaring class part of the symbolic reference

name
String

the #getName member name part of the symbolic reference

type
MethodType

the #getMethodType method type part of the symbolic reference

Returns

a string of the form "RK C.N:MT"

Attributes

Remarks

Returns a string representation for a MethodHandleInfo, given the four parts of its symbolic reference. This is defined to be of the form "RK C.N:MT", where RK is the #referenceKindToString reference kind string for kind, C is the java.lang.Class#getName name of defcN is the name, and MT is the type. These four values may be obtained from the #getReferenceKind reference kind, #getDeclaringClass declaring class, #getName member name, and #getMethodType method type of a MethodHandleInfo object.

Java documentation for java.lang.invoke.MethodHandleInfo.toString(int, java.lang.Class<?>, java.lang.String, 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