Table of Contents

Class MethodHandles

Namespace
Java.Lang.Invoke
Assembly
MASES.JNet.dll
public class MethodHandles : JVMBridgeBase<MethodHandles>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<MethodHandles>
MethodHandles
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<MethodHandles>.IsAssignableFrom(IJavaType)
JVMBridgeBase<MethodHandles>.IsAssignableFrom<T>()
JVMBridgeBase<MethodHandles>.Execute<T>(params T[])
JVMBridgeBase<MethodHandles>.DynBridgeClazz
JVMBridgeBase<MethodHandles>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

MethodHandles()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public MethodHandles()

MethodHandles(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public MethodHandles(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

ArrayConstructor(Class)

public static MethodHandle ArrayConstructor(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

IllegalArgumentException

ArrayElementGetter(Class)

public static MethodHandle ArrayElementGetter(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

IllegalArgumentException

ArrayElementSetter(Class)

public static MethodHandle ArrayElementSetter(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

IllegalArgumentException

ArrayElementVarHandle(Class)

public static VarHandle ArrayElementVarHandle(Class arg0)

Parameters

arg0 Class

Class

Returns

VarHandle

VarHandle

Exceptions

IllegalArgumentException

ArrayLength(Class)

public static MethodHandle ArrayLength(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

IllegalArgumentException

ByteArrayViewVarHandle(Class, ByteOrder)

public static VarHandle ByteArrayViewVarHandle(Class arg0, ByteOrder arg1)

Parameters

arg0 Class

Class

arg1 ByteOrder

ByteOrder

Returns

VarHandle

VarHandle

Exceptions

IllegalArgumentException

ByteBufferViewVarHandle(Class, ByteOrder)

public static VarHandle ByteBufferViewVarHandle(Class arg0, ByteOrder arg1)

Parameters

arg0 Class

Class

arg1 ByteOrder

ByteOrder

Returns

VarHandle

VarHandle

Exceptions

IllegalArgumentException

CatchException(MethodHandle, Class, MethodHandle)

public static MethodHandle CatchException(MethodHandle arg0, Class arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 Class

Class

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

CollectArguments(MethodHandle, int, MethodHandle)

public static MethodHandle CollectArguments(MethodHandle arg0, int arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

Constant(Class, object)

public static MethodHandle Constant(Class arg0, object arg1)

Parameters

arg0 Class

Class

arg1 object

object

Returns

MethodHandle

MethodHandle

CountedLoop(MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle CountedLoop(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

CountedLoop(MethodHandle, MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle CountedLoop(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2, MethodHandle arg3)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

arg3 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

DoWhileLoop(MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle DoWhileLoop(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

DropArguments(MethodHandle, int, params Class[])

public static MethodHandle DropArguments(MethodHandle arg0, int arg1, params Class[] arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 Class[]

Class

Returns

MethodHandle

MethodHandle

DropArguments(MethodHandle, int, List<Class>)

public static MethodHandle DropArguments(MethodHandle arg0, int arg1, List<Class> arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 List<Class>

List

Returns

MethodHandle

MethodHandle

DropArgumentsToMatch(MethodHandle, int, List<Class>, int)

public static MethodHandle DropArgumentsToMatch(MethodHandle arg0, int arg1, List<Class> arg2, int arg3)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 List<Class>

List

arg3 int

int

Returns

MethodHandle

MethodHandle

Empty(MethodType)

public static MethodHandle Empty(MethodType arg0)

Parameters

arg0 MethodType

MethodType

Returns

MethodHandle

MethodHandle

ExactInvoker(MethodType)

public static MethodHandle ExactInvoker(MethodType arg0)

Parameters

arg0 MethodType

MethodType

Returns

MethodHandle

MethodHandle

ExplicitCastArguments(MethodHandle, MethodType)

public static MethodHandle ExplicitCastArguments(MethodHandle arg0, MethodType arg1)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodType

MethodType

Returns

MethodHandle

MethodHandle

FilterArguments(MethodHandle, int, params MethodHandle[])

public static MethodHandle FilterArguments(MethodHandle arg0, int arg1, params MethodHandle[] arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 MethodHandle[]

MethodHandle

Returns

MethodHandle

MethodHandle

FilterReturnValue(MethodHandle, MethodHandle)

public static MethodHandle FilterReturnValue(MethodHandle arg0, MethodHandle arg1)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

FoldArguments(MethodHandle, MethodHandle)

public static MethodHandle FoldArguments(MethodHandle arg0, MethodHandle arg1)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

FoldArguments(MethodHandle, int, MethodHandle)

public static MethodHandle FoldArguments(MethodHandle arg0, int arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

GuardWithTest(MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle GuardWithTest(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

Identity(Class)

public static MethodHandle Identity(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle

InsertArguments(MethodHandle, int, params object[])

public static MethodHandle InsertArguments(MethodHandle arg0, int arg1, params object[] arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 int

int

arg2 object[]

object

Returns

MethodHandle

MethodHandle

Invoker(MethodType)

public static MethodHandle Invoker(MethodType arg0)

Parameters

arg0 MethodType

MethodType

Returns

MethodHandle

MethodHandle

IteratedLoop(MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle IteratedLoop(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

LookupMethod()

public static MethodHandles.Lookup LookupMethod()

Returns

MethodHandles.Lookup

MethodHandles.Lookup

Loop(params MethodHandle[][])

public static MethodHandle Loop(params MethodHandle[][] arg0)

Parameters

arg0 MethodHandle[][]

MethodHandle

Returns

MethodHandle

MethodHandle

PermuteArguments(MethodHandle, MethodType, params int[])

public static MethodHandle PermuteArguments(MethodHandle arg0, MethodType arg1, params int[] arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodType

MethodType

arg2 int[]

int

Returns

MethodHandle

MethodHandle

PrivateLookupIn(Class, Lookup)

public static MethodHandles.Lookup PrivateLookupIn(Class arg0, MethodHandles.Lookup arg1)

Parameters

arg0 Class

Class

arg1 MethodHandles.Lookup

MethodHandles.Lookup

Returns

MethodHandles.Lookup

MethodHandles.Lookup

Exceptions

IllegalAccessException

PublicLookup()

public static MethodHandles.Lookup PublicLookup()

Returns

MethodHandles.Lookup

MethodHandles.Lookup

ReflectAs<T>(Class, MethodHandle)

public static T ReflectAs<T>(Class arg0, MethodHandle arg1) where T : IMember, new()

Parameters

arg0 Class

Class

arg1 MethodHandle

MethodHandle

Returns

T

T

Type Parameters

T

IMember

SpreadInvoker(MethodType, int)

public static MethodHandle SpreadInvoker(MethodType arg0, int arg1)

Parameters

arg0 MethodType

MethodType

arg1 int

int

Returns

MethodHandle

MethodHandle

ThrowException(Class, Class)

public static MethodHandle ThrowException(Class arg0, Class arg1)

Parameters

arg0 Class

Class

arg1 Class

Class

Returns

MethodHandle

MethodHandle

TryFinally(MethodHandle, MethodHandle)

public static MethodHandle TryFinally(MethodHandle arg0, MethodHandle arg1)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

VarHandleExactInvoker(AccessMode, MethodType)

public static MethodHandle VarHandleExactInvoker(VarHandle.AccessMode arg0, MethodType arg1)

Parameters

arg0 VarHandle.AccessMode

VarHandle.AccessMode

arg1 MethodType

MethodType

Returns

MethodHandle

MethodHandle

VarHandleInvoker(AccessMode, MethodType)

public static MethodHandle VarHandleInvoker(VarHandle.AccessMode arg0, MethodType arg1)

Parameters

arg0 VarHandle.AccessMode

VarHandle.AccessMode

arg1 MethodType

MethodType

Returns

MethodHandle

MethodHandle

WhileLoop(MethodHandle, MethodHandle, MethodHandle)

public static MethodHandle WhileLoop(MethodHandle arg0, MethodHandle arg1, MethodHandle arg2)

Parameters

arg0 MethodHandle

MethodHandle

arg1 MethodHandle

MethodHandle

arg2 MethodHandle

MethodHandle

Returns

MethodHandle

MethodHandle

Zero(Class)

public static MethodHandle Zero(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandle

MethodHandle