Language

CallSite.Target Property

Definition

Returns the target method of the call site, according to the behavior defined by this call site's specific class.

public abstract Java.Lang.Invoke.MethodHandle? Target { [Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "GetGetTargetHandler", ApiSince=26)] get; [Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "GetSetTarget_Ljava_lang_invoke_MethodHandle_Handler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "GetGetTargetHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "GetSetTarget_Ljava_lang_invoke_MethodHandle_Handler", ApiSince=26)>]
member this.Target : Java.Lang.Invoke.MethodHandle with get, set

Property Value

the current linkage state of the call site, its target method handle

Attributes

Remarks

Returns the target method of the call site, according to the behavior defined by this call site's specific class. The immediate subclasses of CallSite document the class-specific behaviors of this method.

Java reference for java.lang.invoke.CallSite.getTarget.

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