ConstantCallSite.Target Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the target method of the call site, which behaves
like a final
field of the ConstantCallSite
. -or- Always throws an UnsupportedOperationException
.
public override Java.Lang.Invoke.MethodHandle? Target { [Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)] get; [Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "", ApiSince=26)>]
member this.Target : Java.Lang.Invoke.MethodHandle with get, set
Property Value
the immutable linkage state of this call site, a constant method handle
- Attributes
Remarks
Property getter documentation:
Returns the target method of the call site, which behaves like a final
field of the ConstantCallSite
. That is, the target is always the original value passed to the constructor call which created this instance.
Java documentation for java.lang.invoke.ConstantCallSite.getTarget()
.
Property setter documentation:
Always throws an UnsupportedOperationException
. This kind of call site cannot change its target.
Java documentation for java.lang.invoke.ConstantCallSite.setTarget(java.lang.invoke.MethodHandle)
.
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.