Class Class<T>
public class Class<T> : JVMBridgeBase<Class<T>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
T
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Class<T>>Class<T>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Class<T>>.SExecute<TNewClass, TReturn, TConverter>(IJavaType, string, params object[])JVMBridgeBase<Class<T>>.IsAssignableFrom(IJavaType)JVMBridgeBase<Class<T>>.IsAssignableFrom<T>()JVMBridgeBase<Class<T>>.Execute<T>(params T[])JVMBridgeBase<Class<T>>.DynBridgeClazzJVMBridgeBase<Class<T>>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
AnnotatedSuperclass
public AnnotatedType AnnotatedSuperclass { get; }
Property Value
Annotations
public Annotation[] Annotations { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CanonicalName
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html#getCanonicalName()
public String CanonicalName { get; }
Property Value
ClassLoader
public ClassLoader ClassLoader { get; }
Property Value
Classes
public Class[] Classes { get; }
Property Value
- Class[]
ComponentType
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html#getComponentType()
public Class ComponentType { get; }
Property Value
Constructors
public Constructor<object>[] Constructors { get; }
Property Value
DeclaredAnnotations
public Annotation[] DeclaredAnnotations { get; }
Property Value
DeclaredClasses
public Class[] DeclaredClasses { get; }
Property Value
- Class[]
DeclaredConstructors
public Constructor<object>[] DeclaredConstructors { get; }
Property Value
DeclaredFields
public Field[] DeclaredFields { get; }
Property Value
- Field[]
DeclaredMethods
public Method[] DeclaredMethods { get; }
Property Value
- Method[]
DeclaringClass
public Class DeclaringClass { get; }
Property Value
EnclosingClass
public Class EnclosingClass { get; }
Property Value
EnclosingConstructor
public Constructor<object> EnclosingConstructor { get; }
Property Value
EnclosingMethod
public Method EnclosingMethod { get; }
Property Value
EnumConstants
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html#getEnumConstants()
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
Interfaces
public Class[] Interfaces { get; }
Property Value
- Class[]
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
public Method[] Methods { get; }
Property Value
- Method[]
Modifiers
public int Modifiers { get; }
Property Value
Module
public Module Module { get; }
Property Value
Name
public String Name { get; }
Property Value
NestHost
public Class NestHost { get; }
Property Value
NestMembers
public Class[] NestMembers { get; }
Property Value
- Class[]
Package
public Package Package { get; }
Property Value
PackageName
public String PackageName { get; }
Property Value
ProtectionDomain
public ProtectionDomain ProtectionDomain { get; }
Property Value
Signers
public object[] Signers { get; }
Property Value
- object[]
SimpleName
public String SimpleName { get; }
Property Value
Superclass
public Class Superclass { get; }
Property Value
TypeName
public String TypeName { get; }
Property Value
TypeParameters
public TypeVariable<Class>[] TypeParameters { get; }
Property Value
Methods
AsSubclass<ReturnExtendsU, U>(Class)
public Class AsSubclass<ReturnExtendsU, U>(Class arg0) where ReturnExtendsU : U
Parameters
Returns
Type Parameters
ReturnExtendsU
U
U
Cast(object)
public T Cast(object arg0)
Parameters
Returns
- T
T
DesiredAssertionStatus()
public bool DesiredAssertionStatus()
Returns
ForName(Module, String)
public static Class ForName(Module arg0, String arg1)
Parameters
Returns
ForName(String)
public static Class ForName(String arg0)
Parameters
Returns
Exceptions
ForName(String, bool, ClassLoader)
public static Class ForName(String arg0, bool arg1, ClassLoader arg2)
Parameters
arg0
Stringarg1
boolarg2
ClassLoader
Returns
Exceptions
GetAnnotation<A>(Class)
public A GetAnnotation<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A
A
Type Parameters
GetAnnotationsByType<A>(Class)
public A[] GetAnnotationsByType<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A[]
A
Type Parameters
GetConstructor(params Class[])
public Constructor<T> GetConstructor(params Class[] arg0)
Parameters
Returns
Exceptions
GetDeclaredAnnotation<A>(Class)
public A GetDeclaredAnnotation<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A
A
Type Parameters
GetDeclaredAnnotationsByType<A>(Class)
public A[] GetDeclaredAnnotationsByType<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A[]
A
Type Parameters
GetDeclaredConstructor(params Class[])
public Constructor<T> GetDeclaredConstructor(params Class[] arg0)
Parameters
Returns
Exceptions
GetDeclaredField(String)
public Field GetDeclaredField(String arg0)
Parameters
Returns
Exceptions
GetDeclaredMethod(String, params Class[])
public Method GetDeclaredMethod(String arg0, params Class[] arg1)
Parameters
Returns
Exceptions
GetField(String)
public Field GetField(String arg0)
Parameters
Returns
Exceptions
GetMethod(String, params Class[])
public Method GetMethod(String arg0, params Class[] arg1)
Parameters
Returns
Exceptions
GetResource(String)
public URL GetResource(String arg0)
Parameters
Returns
GetResourceAsStream(String)
public InputStream GetResourceAsStream(String arg0)
Parameters
Returns
IsAnnotation()
public bool IsAnnotation()
Returns
IsAnnotationPresent(Class)
public bool IsAnnotationPresent(Class arg0)
Parameters
Returns
IsAnonymousClass()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html#isAnonymousClass()
public bool IsAnonymousClass()
Returns
IsArray()
public bool IsArray()
Returns
IsAssignableFrom(Class)
public bool IsAssignableFrom(Class arg0)
Parameters
Returns
IsEnum()
public bool IsEnum()
Returns
IsInstance(object)
public bool IsInstance(object arg0)
Parameters
Returns
IsInterface()
public bool IsInterface()
Returns
IsLocalClass()
public bool IsLocalClass()
Returns
IsMemberClass()
public bool IsMemberClass()
Returns
IsNestmateOf(Class)
public bool IsNestmateOf(Class arg0)
Parameters
Returns
IsPrimitive()
public bool IsPrimitive()
Returns
IsSynthetic()
public bool IsSynthetic()
Returns
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
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
implicit operator Class(Class<T>)
public static implicit operator Class(Class<T> t)
Parameters
t
Class<T>
Returns
implicit operator AnnotatedElement(Class<T>)
Converter from Class<T> to AnnotatedElement
public static implicit operator AnnotatedElement(Class<T> t)
Parameters
t
Class<T>
Returns
implicit operator GenericDeclaration(Class<T>)
Converter from Class<T> to GenericDeclaration
public static implicit operator GenericDeclaration(Class<T> t)
Parameters
t
Class<T>
Returns
implicit operator Type(Class<T>)
public static implicit operator Type(Class<T> t)
Parameters
t
Class<T>