Freigeben über


CallSite.Type Method

Definition

Returns the type of this call site's target.

[Android.Runtime.Register("type", "()Ljava/lang/invoke/MethodType;", "GetTypeHandler", ApiSince=26)]
public virtual Java.Lang.Invoke.MethodType? Type ();
[<Android.Runtime.Register("type", "()Ljava/lang/invoke/MethodType;", "GetTypeHandler", ApiSince=26)>]
abstract member Type : unit -> Java.Lang.Invoke.MethodType
override this.Type : unit -> Java.Lang.Invoke.MethodType

Returns

the type of the current target, which is also the type of any future target

Attributes

Remarks

Returns the type of this call site's target. Although targets may change, any call site's type is permanent, and can never change to an unequal type. The setTarget method enforces this invariant by refusing any new target that does not have the previous target's type.

Java documentation for java.lang.invoke.CallSite.type().

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