The members of Java.Lang.Class are listed below.
See Also: Inherited members from Java.Lang.Object
[read-only] | CanonicalName | string. Returns the canonical name of this class. |
[read-only] | ClassLoader | ClassLoader. Returns the class loader which was used to load the class represented by this Class. |
[read-only] | ComponentType | Class. Returns a Class object which represents the component type if this class represents an array type. |
[read-only] | DeclaringClass | Class. Returns the class that this class is a member of, or null if this class is a top-level class, a primitive, an array, or defined within a method or constructor. |
[read-only] | EnclosingClass | Class. Returns the class enclosing this class. |
[read-only] | EnclosingConstructor | Java.Lang.Reflect.Constructor. Returns the enclosing Constructor of this Class, if it is an anonymous or local/automatic class; otherwise null. |
[read-only] | EnclosingMethod | Java.Lang.Reflect.Method. Returns the enclosing Method of this Class, if it is an anonymous or local/automatic class; otherwise null. |
[read-only] | GenericSuperclass | Java.Lang.Reflect.IType. Returns the Type that represents the superclass of this class. |
[read-only] | IsAnnotation | bool. Tests whether this Class represents an annotation class. |
[read-only] | IsAnonymousClass | bool. Tests whether the class represented by this Class is anonymous. |
[read-only] | IsArray | bool. Tests whether the class represented by this Class is an array class. |
[read-only] | IsEnum | bool. Tests whether the class represented by this Class is an enum. |
[read-only] | IsInterface | bool. Tests whether this Class represents an interface. |
[read-only] | IsLocalClass | bool. Tests whether the class represented by this Class is defined locally. |
[read-only] | IsMemberClass | bool. Tests whether the class represented by this Class is a member class. |
[read-only] | IsPrimitive | bool. Tests whether this Class represents a primitive type. |
[read-only] | IsSynthetic | bool. Tests whether this Class represents a synthetic type. |
[read-only] | Modifiers | int. Returns an integer that represents the modifiers of the class represented by this Class. |
[read-only] | Name | string. Returns the name of the class represented by this Class. |
[read-only] | Package | Package. Returns the Package of which the class represented by this Class is a member. |
[read-only] | ProtectionDomain | Java.Security.ProtectionDomain. Returns null. |
[read-only] | SimpleName | string. Returns the simple name of the class represented by this Class as defined in the source code. |
[read-only] | Superclass | Class. Returns the Class object which represents the superclass of the class represented by this Class. |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
AsSubclass(Class)Documentation for this section has not yet been entered. | ||
Cast(Object)Casts the given object to the type represented by this Class. | ||
DesiredAssertionStatus()Returns the assertion status for the class represented by this Class. | ||
static | ForName(string)Returns a Class object which represents the class with the given name. | |
static | ForName(string, bool, ClassLoader)Returns a Class object which represents the class with the given name. | |
static | FromType(Type)Documentation for this section has not yet been entered. | |
GetAnnotation(Class)Documentation for this section has not yet been entered. | ||
GetAnnotations()Returns an array containing all the annotations of this class. | ||
GetClasses()Returns an array containing Class objects for all public classes, interfaces, enums and annotations that are members of this class and its superclasses. | ||
GetConstructor(params Class[])Documentation for this section has not yet been entered. | ||
GetConstructors()Returns an array containing Constructor objects for all public constructors for this Class. | ||
GetDeclaredAnnotations()Returns the annotations that are directly defined on the class represented by this Class. | ||
GetDeclaredClasses()Returns an array containing Class objects for all classes, interfaces, enums and annotations that are members of this class. | ||
GetDeclaredConstructor(params Class[])Documentation for this section has not yet been entered. | ||
GetDeclaredConstructors()Returns an array containing Constructor objects for all constructors declared in the class represented by this Class. | ||
GetDeclaredField(string)Returns a Field object for the field with the given name which is declared in the class represented by this Class. | ||
GetDeclaredFields()Returns an array containing Field objects for all fields declared in the class represented by this Class. | ||
GetDeclaredMethod(string, params Class[])Documentation for this section has not yet been entered. | ||
GetDeclaredMethods()Returns an array containing Method objects for all methods declared in the class represented by this Class. | ||
GetEnumConstants()Returns the enum constants associated with this Class. | ||
GetField(string)Returns a Field object which represents the public field with the given name. | ||
GetFields()Returns an array containing Field objects for all public fields for the class C represented by this Class. | ||
GetGenericInterfaces()Returns the Java.Lang.Reflect.ITypes of the interfaces that this Class directly implements. | ||
GetInterfaces()Returns an array of Class objects that match the interfaces in the implements declaration of the class represented by this Class. | ||
GetMethod(string, params Class[])Documentation for this section has not yet been entered. | ||
GetMethods()Returns an array containing Method objects for all public methods for the class C represented by this Class. | ||
GetResource(string)Returns the URL of the given resource, or null if the resource is not found. | ||
GetResourceAsStream(string)Returns a read-only stream for the contents of the given resource, or null if the resource is not found. | ||
GetSigners()Returns null. | ||
GetTypeParameters()Returns an array containing TypeVariable objects for type variables declared by the generic class represented by this Class. | ||
IsAnnotationPresent(Class)Documentation for this section has not yet been entered. | ||
IsAssignableFrom(Class)Documentation for this section has not yet been entered. | ||
IsInstance(Object)Tests whether the given object can be cast to the class represented by this Class. | ||
NewInstance()Returns a new instance of the class represented by this Class, created by invoking the default (that is, zero-argument) constructor. |