Language

IMethodHandleInfo.MethodType Property

Definition

Returns the nominal type of the cracked symbolic reference, expressed as a method type.

public Java.Lang.Invoke.MethodType? MethodType { [Android.Runtime.Register("getMethodType", "()Ljava/lang/invoke/MethodType;", "GetGetMethodTypeHandler:Java.Lang.Invoke.IMethodHandleInfoInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMethodType", "()Ljava/lang/invoke/MethodType;", "GetGetMethodTypeHandler:Java.Lang.Invoke.IMethodHandleInfoInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.MethodType : Java.Lang.Invoke.MethodType

Property Value

the type of the underlying member, expressed as a method type

Attributes

Remarks

Returns the nominal type of the cracked symbolic reference, expressed as a method type. If the reference is to a constructor, the return type will be void. If it is to a non-static method, the method type will not mention the this parameter. If it is to a field and the requested access is to read the field, the method type will have no parameters and return the field type. If it is to a field and the requested access is to write the field, the method type will have one parameter of the field type and return void.

Note that the original direct method handle may include a leading this parameter, or (in the case of a constructor) will replace the void return type with the constructed class. The nominal type does not include any this parameter, and (in the case of a constructor) will return void.

Java documentation for java.lang.invoke.MethodHandleInfo.getMethodType().

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