MethodType.ToMethodDescriptorString Method

Definition

Produces a bytecode descriptor representation of the method type.

[Android.Runtime.Register("toMethodDescriptorString", "()Ljava/lang/String;", "", ApiSince=26)]
public string? ToMethodDescriptorString ();
[<Android.Runtime.Register("toMethodDescriptorString", "()Ljava/lang/String;", "", ApiSince=26)>]
member this.ToMethodDescriptorString : unit -> string

Returns

the bytecode type descriptor representation

Attributes

Remarks

Produces a bytecode descriptor representation of the method type.

Note that this is not a strict inverse of #fromMethodDescriptorString fromMethodDescriptorString. Two distinct classes which share a common name but have different class loaders will appear identical when viewed within descriptor strings.

This method is included for the benefit of applications that must generate bytecodes that process method handles and invokedynamic. #fromMethodDescriptorString(java.lang.String, java.lang.ClassLoader) fromMethodDescriptorString, because the latter requires a suitable class loader argument.

Java documentation for java.lang.invoke.MethodType.toMethodDescriptorString().

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