Table of Contents

Class MethodHandles.Lookup

Namespace
Java.Lang.Invoke
Assembly
MASES.JNet.dll
public class MethodHandles.Lookup : JVMBridgeBase<MethodHandles.Lookup>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<MethodHandles.Lookup>
MethodHandles.Lookup
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<MethodHandles.Lookup>.IsAssignableFrom(IJavaType)
JVMBridgeBase<MethodHandles.Lookup>.IsAssignableFrom<T>()
JVMBridgeBase<MethodHandles.Lookup>.Execute<T>(params T[])
JVMBridgeBase<MethodHandles.Lookup>.DynBridgeClazz
JVMBridgeBase<MethodHandles.Lookup>.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

Lookup()

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

public Lookup()

Lookup(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 Lookup(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

MODULE

public static int MODULE { get; }

Property Value

int

PACKAGE

public static int PACKAGE { get; }

Property Value

int

PRIVATE

public static int PRIVATE { get; }

Property Value

int

PROTECTED

public static int PROTECTED { get; }

Property Value

int

PUBLIC

public static int PUBLIC { get; }

Property Value

int

UNCONDITIONAL

public static int UNCONDITIONAL { get; }

Property Value

int

Methods

AccessClass(Class)

public Class AccessClass(Class arg0)

Parameters

arg0 Class

Class

Returns

Class

Class

Exceptions

IllegalAccessException

Bind(object, String, MethodType)

public MethodHandle Bind(object arg0, String arg1, MethodType arg2)

Parameters

arg0 object

object

arg1 String

String

arg2 MethodType

MethodType

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchMethodException
IllegalAccessException

DefineClass(byte[])

public Class DefineClass(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

Class

Class

Exceptions

IllegalAccessException

DropLookupMode(int)

public MethodHandles.Lookup DropLookupMode(int arg0)

Parameters

arg0 int

int

Returns

MethodHandles.Lookup

MethodHandles.Lookup

FindClass(String)

public Class FindClass(String arg0)

Parameters

arg0 String

String

Returns

Class

Class

Exceptions

ClassNotFoundException
IllegalAccessException

FindConstructor(Class, MethodType)

public MethodHandle FindConstructor(Class arg0, MethodType arg1)

Parameters

arg0 Class

Class

arg1 MethodType

MethodType

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchMethodException
IllegalAccessException

FindGetter(Class, String, Class)

public MethodHandle FindGetter(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindSetter(Class, String, Class)

public MethodHandle FindSetter(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindSpecial(Class, String, MethodType, Class)

public MethodHandle FindSpecial(Class arg0, String arg1, MethodType arg2, Class arg3)

Parameters

arg0 Class

Class

arg1 String

String

arg2 MethodType

MethodType

arg3 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchMethodException
IllegalAccessException

FindStatic(Class, String, MethodType)

public MethodHandle FindStatic(Class arg0, String arg1, MethodType arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 MethodType

MethodType

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchMethodException
IllegalAccessException

FindStaticGetter(Class, String, Class)

public MethodHandle FindStaticGetter(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindStaticSetter(Class, String, Class)

public MethodHandle FindStaticSetter(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindStaticVarHandle(Class, String, Class)

public VarHandle FindStaticVarHandle(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

VarHandle

VarHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindVarHandle(Class, String, Class)

public VarHandle FindVarHandle(Class arg0, String arg1, Class arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 Class

Class

Returns

VarHandle

VarHandle

Exceptions

NoSuchFieldException
IllegalAccessException

FindVirtual(Class, String, MethodType)

public MethodHandle FindVirtual(Class arg0, String arg1, MethodType arg2)

Parameters

arg0 Class

Class

arg1 String

String

arg2 MethodType

MethodType

Returns

MethodHandle

MethodHandle

Exceptions

NoSuchMethodException
IllegalAccessException

HasPrivateAccess()

public bool HasPrivateAccess()

Returns

bool

bool

In(Class)

public MethodHandles.Lookup In(Class arg0)

Parameters

arg0 Class

Class

Returns

MethodHandles.Lookup

MethodHandles.Lookup

LookupClass()

public Class LookupClass()

Returns

Class

Class

LookupModes()

public int LookupModes()

Returns

int

int

RevealDirect(MethodHandle)

public MethodHandleInfo RevealDirect(MethodHandle arg0)

Parameters

arg0 MethodHandle

MethodHandle

Returns

MethodHandleInfo

MethodHandleInfo

Unreflect(Method)

public MethodHandle Unreflect(Method arg0)

Parameters

arg0 Method

Method

Returns

MethodHandle

MethodHandle

Exceptions

IllegalAccessException

UnreflectConstructor(Constructor<object>)

public MethodHandle UnreflectConstructor(Constructor<object> arg0)

Parameters

arg0 Constructor<object>

Constructor

Returns

MethodHandle

MethodHandle

Exceptions

IllegalAccessException

UnreflectGetter(Field)

public MethodHandle UnreflectGetter(Field arg0)

Parameters

arg0 Field

Field

Returns

MethodHandle

MethodHandle

Exceptions

IllegalAccessException

UnreflectSetter(Field)

public MethodHandle UnreflectSetter(Field arg0)

Parameters

arg0 Field

Field

Returns

MethodHandle

MethodHandle

Exceptions

IllegalAccessException

UnreflectSpecial(Method, Class)

public MethodHandle UnreflectSpecial(Method arg0, Class arg1)

Parameters

arg0 Method

Method

arg1 Class

Class

Returns

MethodHandle

MethodHandle

Exceptions

IllegalAccessException

UnreflectVarHandle(Field)

public VarHandle UnreflectVarHandle(Field arg0)

Parameters

arg0 Field

Field

Returns

VarHandle

VarHandle

Exceptions

IllegalAccessException