Dela via


MethodHandleInfo.ReferenceKindToString(ReferenceKind) Method

Definition

Caution

Use 'Java.Lang.Invoke.IMethodHandleInfo.ReferenceKindToString'. This class will be removed in a future release.

Returns the descriptive name of the given reference kind, as defined in the table above.

[Android.Runtime.Register("referenceKindToString", "(I)Ljava/lang/String;", "", ApiSince=26)]
[System.Obsolete("Use 'Java.Lang.Invoke.IMethodHandleInfo.ReferenceKindToString'. This class will be removed in a future release.")]
public static string? ReferenceKindToString (Java.Lang.Invoke.ReferenceKind referenceKind);
[<Android.Runtime.Register("referenceKindToString", "(I)Ljava/lang/String;", "", ApiSince=26)>]
[<System.Obsolete("Use 'Java.Lang.Invoke.IMethodHandleInfo.ReferenceKindToString'. This class will be removed in a future release.")>]
static member ReferenceKindToString : Java.Lang.Invoke.ReferenceKind -> string

Parameters

referenceKind
ReferenceKind

an integer code for a kind of reference used to access a class member

Returns

a mixed-case string such as "getField"

Attributes

Remarks

Returns the descriptive name of the given reference kind, as defined in the table above. The conventional prefix "REF_" is omitted.

Java documentation for java.lang.invoke.MethodHandleInfo.referenceKindToString(int).

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