Table of Contents

Class Class

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

Class()

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

public Class()

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

SystemClassLoader

Returns the cached SystemClassLoader, it is used internally from Of<T>(ClassLoader)

public static ClassLoader SystemClassLoader { get; }

Property Value

ClassLoader

Methods

ArrayType()

public TypeDescriptor.OfField ArrayType()

Returns

TypeDescriptor.OfField

TypeDescriptor.OfField

AsSubclass(Class)

public Class AsSubclass(Class arg0)

Parameters

arg0 Class

Class

Returns

Class

Class

Cast(object)

public object Cast(object arg0)

Parameters

arg0 object

object

Returns

object

object

ComponentType()

public TypeDescriptor.OfField ComponentType()

Returns

TypeDescriptor.OfField

TypeDescriptor.OfField

DescriptorString()

public String DescriptorString()

Returns

String

String

DesiredAssertionStatus()

public bool DesiredAssertionStatus()

Returns

bool

bool

ForName(String)

public static Class ForName(String arg0)

Parameters

arg0 String

String

Returns

Class

Class

Exceptions

ClassNotFoundException

ForName(String, bool, ClassLoader)

public static Class ForName(String arg0, bool arg1, ClassLoader arg2)

Parameters

arg0 String

String

arg1 bool

bool

arg2 ClassLoader

ClassLoader

Returns

Class

Class

Exceptions

ClassNotFoundException

GetAnnotation(Class)

public Annotation GetAnnotation(Class arg0)

Parameters

arg0 Class

Class

Returns

Annotation

Annotation

GetAnnotation<T>(Class)

public T GetAnnotation<T>(Class arg0) where T : IAnnotation, new()

Parameters

arg0 Class

Returns

T

Type Parameters

T

GetAnnotations()

public Annotation[] GetAnnotations()

Returns

Annotation[]

Annotation

GetAnnotationsByType(Class)

public Annotation[] GetAnnotationsByType(Class arg0)

Parameters

arg0 Class

Class

Returns

Annotation[]

Annotation

GetAnnotationsByType<T>(Class)

public T[] GetAnnotationsByType<T>(Class arg0) where T : IAnnotation, new()

Parameters

arg0 Class

Returns

T[]

Type Parameters

T

GetCanonicalName()

public String GetCanonicalName()

Returns

String

String

GetClassLoader()

public ClassLoader GetClassLoader()

Returns

ClassLoader

ClassLoader

GetClasses()

public Class[] GetClasses()

Returns

Class[]

Class

GetComponentType()

public Class GetComponentType()

Returns

Class

Class

GetConstructor(params Class[])

public Constructor GetConstructor(params Class[] arg0)

Parameters

arg0 Class[]

Class

Returns

Constructor

Constructor

Exceptions

NoSuchMethodException
SecurityException

GetConstructors()

public Constructor[] GetConstructors()

Returns

Constructor[]

Constructor

Exceptions

SecurityException

GetDeclaredAnnotation(Class)

public Annotation GetDeclaredAnnotation(Class arg0)

Parameters

arg0 Class

Class

Returns

Annotation

Annotation

GetDeclaredAnnotation<T>(Class)

public T GetDeclaredAnnotation<T>(Class arg0) where T : IAnnotation, new()

Parameters

arg0 Class

Returns

T

Type Parameters

T

GetDeclaredAnnotations()

public Annotation[] GetDeclaredAnnotations()

Returns

Annotation[]

Annotation

GetDeclaredAnnotationsByType(Class)

public Annotation[] GetDeclaredAnnotationsByType(Class arg0)

Parameters

arg0 Class

Class

Returns

Annotation[]

Annotation

GetDeclaredAnnotationsByType<T>(Class)

public T[] GetDeclaredAnnotationsByType<T>(Class arg0) where T : IAnnotation, new()

Parameters

arg0 Class

Returns

T[]

Type Parameters

T

GetDeclaredClasses()

public Class[] GetDeclaredClasses()

Returns

Class[]

Class

Exceptions

SecurityException

GetDeclaredConstructor(params Class[])

public Constructor GetDeclaredConstructor(params Class[] arg0)

Parameters

arg0 Class[]

Class

Returns

Constructor

Constructor

Exceptions

NoSuchMethodException
SecurityException

GetDeclaredConstructors()

public Constructor[] GetDeclaredConstructors()

Returns

Constructor[]

Constructor

Exceptions

SecurityException

GetDeclaredField(String)

public Field GetDeclaredField(String arg0)

Parameters

arg0 String

String

Returns

Field

Field

Exceptions

NoSuchFieldException
SecurityException

GetDeclaredFields()

public Field[] GetDeclaredFields()

Returns

Field[]

Field

Exceptions

SecurityException

GetDeclaredMethod(String, params Class[])

public Method GetDeclaredMethod(String arg0, params Class[] arg1)

Parameters

arg0 String

String

arg1 Class[]

Class

Returns

Method

Method

Exceptions

NoSuchMethodException
SecurityException

GetDeclaredMethods()

public Method[] GetDeclaredMethods()

Returns

Method[]

Method

Exceptions

SecurityException

GetDeclaringClass()

public Class GetDeclaringClass()

Returns

Class

Class

Exceptions

SecurityException

GetEnclosingClass()

public Class GetEnclosingClass()

Returns

Class

Class

Exceptions

SecurityException

GetEnclosingConstructor()

public Constructor GetEnclosingConstructor()

Returns

Constructor

Constructor

Exceptions

SecurityException

GetEnclosingMethod()

public Method GetEnclosingMethod()

Returns

Method

Method

Exceptions

SecurityException

GetEnumConstants()

public object[] GetEnumConstants()

Returns

object[]

object

GetField(String)

public Field GetField(String arg0)

Parameters

arg0 String

String

Returns

Field

Field

Exceptions

NoSuchFieldException
SecurityException

GetFields()

public Field[] GetFields()

Returns

Field[]

Field

Exceptions

SecurityException

GetGenericInterfaces()

public Type[] GetGenericInterfaces()

Returns

Type[]

Type

GetGenericSuperclass()

public Type GetGenericSuperclass()

Returns

Type

Type

GetInterfaces()

public Class[] GetInterfaces()

Returns

Class[]

Class

GetMethod(String, params Class[])

public Method GetMethod(String arg0, params Class[] arg1)

Parameters

arg0 String

String

arg1 Class[]

Class

Returns

Method

Method

Exceptions

NoSuchMethodException
SecurityException

GetMethods()

public Method[] GetMethods()

Returns

Method[]

Method

Exceptions

SecurityException

GetModifiers()

public int GetModifiers()

Returns

int

int

GetName()

public String GetName()

Returns

String

String

GetNestHost()

public Class GetNestHost()

Returns

Class

Class

GetNestMembers()

public Class[] GetNestMembers()

Returns

Class[]

Class

GetPackage()

public Package GetPackage()

Returns

Package

Package

GetPackageName()

public String GetPackageName()

Returns

String

String

GetPermittedSubclasses()

public Class[] GetPermittedSubclasses()

Returns

Class[]

Class

GetProtectionDomain()

public ProtectionDomain GetProtectionDomain()

Returns

ProtectionDomain

ProtectionDomain

GetRecordComponents()

public RecordComponent[] GetRecordComponents()

Returns

RecordComponent[]

RecordComponent

GetResource(String)

public URL GetResource(String arg0)

Parameters

arg0 String

String

Returns

URL

URL

GetResourceAsStream(String)

public InputStream GetResourceAsStream(String arg0)

Parameters

arg0 String

String

Returns

InputStream

InputStream

GetSigners()

public object[] GetSigners()

Returns

object[]

object

GetSimpleName()

public String GetSimpleName()

Returns

String

String

GetSuperclass()

public Class GetSuperclass()

Returns

Class

Class

GetTypeName()

public String GetTypeName()

Returns

String

String

GetTypeParameters()

public TypeVariable[] GetTypeParameters()

Returns

TypeVariable[]

TypeVariable

IsAnnotation()

public bool IsAnnotation()

Returns

bool

bool

IsAnnotationPresent(Class)

public bool IsAnnotationPresent(Class arg0)

Parameters

arg0 Class

Class

Returns

bool

bool

IsAnonymousClass()

public bool IsAnonymousClass()

Returns

bool

bool

IsArray()

public bool IsArray()

Returns

bool

bool

IsAssignableFrom(Class)

public bool IsAssignableFrom(Class arg0)

Parameters

arg0 Class

Class

Returns

bool

bool

IsEnum()

public bool IsEnum()

Returns

bool

bool

IsHidden()

public bool IsHidden()

Returns

bool

bool

IsInstance(object)

public bool IsInstance(object arg0)

Parameters

arg0 object

object

Returns

bool

bool

IsInterface()

public bool IsInterface()

Returns

bool

bool

IsLocalClass()

public bool IsLocalClass()

Returns

bool

bool

IsMemberClass()

public bool IsMemberClass()

Returns

bool

bool

IsNestmateOf(Class)

public bool IsNestmateOf(Class arg0)

Parameters

arg0 Class

Class

Returns

bool

bool

IsPrimitive()

public bool IsPrimitive()

Returns

bool

bool

IsRecord()

public bool IsRecord()

Returns

bool

bool

IsSealed()

public bool IsSealed()

Returns

bool

bool

IsSynthetic()

public bool IsSynthetic()

Returns

bool

bool

NewInstance()

[Obsolete]
public object NewInstance()

Returns

object

object

Exceptions

InstantiationException
IllegalAccessException

Of<T>(ClassLoader)

Returns the Class object associated with the class or interface with the given string name.

public static Class<T> Of<T>(ClassLoader loader = null) where T : IJVMBridgeBase, new()

Parameters

loader ClassLoader

The ClassLoader to be used, default will use SystemClassLoader

Returns

Class<T>

The Class<T> object for the class with the specified name.

Type Parameters

T

The type implementing MASES.JCOBridge.C2JBridge.IJVMBridgeBase

ToGenericString()

public String ToGenericString()

Returns

String

String

Operators

implicit operator Serializable(Class)

Converter from Class to Serializable

public static implicit operator Serializable(Class t)

Parameters

t Class

Returns

Serializable

implicit operator AnnotatedElement(Class)

Converter from Class to AnnotatedElement

public static implicit operator AnnotatedElement(Class t)

Parameters

t Class

Returns

AnnotatedElement

implicit operator GenericDeclaration(Class)

Converter from Class to GenericDeclaration

public static implicit operator GenericDeclaration(Class t)

Parameters

t Class

Returns

GenericDeclaration

implicit operator Type(Class)

Converter from Class to Type

public static implicit operator Type(Class t)

Parameters

t Class

Returns

Type