MutableCallSite Constructors
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.
Overloads
MutableCallSite(MethodHandle) |
Creates a call site object with an initial target method handle. |
MutableCallSite(MethodType) |
Creates a blank call site object with the given method type. |
MutableCallSite(IntPtr, JniHandleOwnership) |
MutableCallSite(MethodHandle)
Creates a call site object with an initial target method handle.
[Android.Runtime.Register(".ctor", "(Ljava/lang/invoke/MethodHandle;)V", "", ApiSince=26)]
public MutableCallSite (Java.Lang.Invoke.MethodHandle? target);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/invoke/MethodHandle;)V", "", ApiSince=26)>]
new Java.Lang.Invoke.MutableCallSite : Java.Lang.Invoke.MethodHandle -> Java.Lang.Invoke.MutableCallSite
Parameters
- target
- MethodHandle
the method handle that will be the initial target of the call site
- Attributes
Remarks
Creates a call site object with an initial target method handle. The type of the call site is permanently set to the initial target's 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
MutableCallSite(MethodType)
Creates a blank call site object with the given method type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/invoke/MethodType;)V", "", ApiSince=26)]
public MutableCallSite (Java.Lang.Invoke.MethodType? type);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/invoke/MethodType;)V", "", ApiSince=26)>]
new Java.Lang.Invoke.MutableCallSite : Java.Lang.Invoke.MethodType -> Java.Lang.Invoke.MutableCallSite
Parameters
- type
- MethodType
the method type that this call site will have
- Attributes
Remarks
Creates a blank call site object with the given method type. The initial target is set to a method handle of the given type which will throw an IllegalStateException
if called.
The type of the call site is permanently set to the given type.
Before this CallSite
object is returned from a bootstrap method, or invoked in some other manner, it is usually provided with a more useful target method, via a call to CallSite#setTarget(MethodHandle) setTarget
.
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
MutableCallSite(IntPtr, JniHandleOwnership)
protected MutableCallSite (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Invoke.MutableCallSite : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Invoke.MutableCallSite
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
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.