Table of Contents

Class Class<T>

Namespace
Java.Lang
Assembly
MASES.JNet.dll
public class Class<T> : JVMBridgeBase<Class<T>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

T
Inheritance
JVMBridgeBase
JVMBridgeBase<Class<T>>
Class<T>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Class<T>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Class<T>>.IsAssignableFrom<T>()
JVMBridgeBase<Class<T>>.Execute<T>(params T[])
JVMBridgeBase<Class<T>>.DynBridgeClazz
JVMBridgeBase<Class<T>>.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

AnnotatedInterfaces

public AnnotatedType[] AnnotatedInterfaces { get; }

Property Value

AnnotatedType[]

AnnotatedSuperclass

public AnnotatedType AnnotatedSuperclass { get; }

Property Value

AnnotatedType

Annotations

public Annotation[] Annotations { get; }

Property Value

Annotation[]

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CanonicalName

public String CanonicalName { get; }

Property Value

String

ClassLoader

public ClassLoader ClassLoader { get; }

Property Value

ClassLoader

Classes

public Class[] Classes { get; }

Property Value

Class[]

ComponentType

public Class ComponentType { get; }

Property Value

Class

Constructors

public Constructor<object>[] Constructors { get; }

Property Value

Constructor<object>[]

DeclaredAnnotations

public Annotation[] DeclaredAnnotations { get; }

Property Value

Annotation[]

DeclaredClasses

public Class[] DeclaredClasses { get; }

Property Value

Class[]

DeclaredConstructors

public Constructor<object>[] DeclaredConstructors { get; }

Property Value

Constructor<object>[]

DeclaredFields

public Field[] DeclaredFields { get; }

Property Value

Field[]

DeclaredMethods

public Method[] DeclaredMethods { get; }

Property Value

Method[]

DeclaringClass

public Class DeclaringClass { get; }

Property Value

Class

EnclosingClass

public Class EnclosingClass { get; }

Property Value

Class

EnclosingConstructor

public Constructor<object> EnclosingConstructor { get; }

Property Value

Constructor<object>

EnclosingMethod

public Method EnclosingMethod { get; }

Property Value

Method

EnumConstants

public T[] EnumConstants { get; }

Property Value

T[]

Fields

public Field[] Fields { get; }

Property Value

Field[]

GenericInterfaces

public Type[] GenericInterfaces { get; }

Property Value

Type[]

GenericSuperclass

public Type GenericSuperclass { get; }

Property Value

Type

Interfaces

public Class[] Interfaces { get; }

Property Value

Class[]

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

public Method[] Methods { get; }

Property Value

Method[]

Modifiers

public int Modifiers { get; }

Property Value

int

Module

public Module Module { get; }

Property Value

Module

Name

public String Name { get; }

Property Value

String

NestHost

public Class NestHost { get; }

Property Value

Class

NestMembers

public Class[] NestMembers { get; }

Property Value

Class[]

Package

public Package Package { get; }

Property Value

Package

PackageName

public String PackageName { get; }

Property Value

String

ProtectionDomain

public ProtectionDomain ProtectionDomain { get; }

Property Value

ProtectionDomain

Signers

public object[] Signers { get; }

Property Value

object[]

SimpleName

public String SimpleName { get; }

Property Value

String

Superclass

public Class Superclass { get; }

Property Value

Class

TypeName

public String TypeName { get; }

Property Value

String

TypeParameters

public TypeVariable<Class>[] TypeParameters { get; }

Property Value

TypeVariable<Class>[]

Methods

AsSubclass<ReturnExtendsU, U>(Class)

public Class AsSubclass<ReturnExtendsU, U>(Class arg0) where ReturnExtendsU : U

Parameters

arg0 Class

Class

Returns

Class

Class

Type Parameters

ReturnExtendsU

U

U

Cast(object)

public T Cast(object arg0)

Parameters

arg0 object

object

Returns

T

T

DesiredAssertionStatus()

public bool DesiredAssertionStatus()

Returns

bool

bool

ForName(Module, String)

public static Class ForName(Module arg0, String arg1)

Parameters

arg0 Module

Module

arg1 String

String

Returns

Class

Class

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

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

Parameters

arg0 Class

Class

Returns

A

A

Type Parameters

A

IAnnotation

GetAnnotationsByType<A>(Class)

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

Parameters

arg0 Class

Class

Returns

A[]

A

Type Parameters

A

IAnnotation

GetConstructor(params Class[])

public Constructor<T> GetConstructor(params Class[] arg0)

Parameters

arg0 Class[]

Class

Returns

Constructor<T>

Constructor

Exceptions

NoSuchMethodException
SecurityException

GetDeclaredAnnotation<A>(Class)

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

Parameters

arg0 Class

Class

Returns

A

A

Type Parameters

A

IAnnotation

GetDeclaredAnnotationsByType<A>(Class)

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

Parameters

arg0 Class

Class

Returns

A[]

A

Type Parameters

A

IAnnotation

GetDeclaredConstructor(params Class[])

public Constructor<T> GetDeclaredConstructor(params Class[] arg0)

Parameters

arg0 Class[]

Class

Returns

Constructor<T>

Constructor

Exceptions

NoSuchMethodException
SecurityException

GetDeclaredField(String)

public Field GetDeclaredField(String arg0)

Parameters

arg0 String

String

Returns

Field

Field

Exceptions

NoSuchFieldException
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

GetField(String)

public Field GetField(String arg0)

Parameters

arg0 String

String

Returns

Field

Field

Exceptions

NoSuchFieldException
SecurityException

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

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

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

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

IsSynthetic()

public bool IsSynthetic()

Returns

bool

bool

NewInstance()

Creates a new instance of the class represented by this Class object.

public T NewInstance()

Returns

T

A newly allocated instance of the class represented by this object.

ToGenericString()

public String ToGenericString()

Returns

String

String

Operators

implicit operator Serializable(Class<T>)

Converter from Class<T> to Serializable

public static implicit operator Serializable(Class<T> t)

Parameters

t Class<T>

Returns

Serializable

implicit operator Class(Class<T>)

Converter from Class<T> to Class

public static implicit operator Class(Class<T> t)

Parameters

t Class<T>

Returns

Class

implicit operator AnnotatedElement(Class<T>)

Converter from Class<T> to AnnotatedElement

public static implicit operator AnnotatedElement(Class<T> t)

Parameters

t Class<T>

Returns

AnnotatedElement

implicit operator GenericDeclaration(Class<T>)

Converter from Class<T> to GenericDeclaration

public static implicit operator GenericDeclaration(Class<T> t)

Parameters

t Class<T>

Returns

GenericDeclaration

implicit operator Type(Class<T>)

Converter from Class<T> to Type

public static implicit operator Type(Class<T> t)

Parameters

t Class<T>

Returns

Type