Java.Lang.Class Members

The members of Java.Lang.Class are listed below.

See Also: Inherited members from Java.Lang.Object

Public Fields

static readonly
CharSequenceIntPtr. Documentation for this section has not yet been entered.
static readonly
ObjectIntPtr. Documentation for this section has not yet been entered.
static readonly
StringIntPtr. Documentation for this section has not yet been entered.

Public Properties

[read-only]
CanonicalNamestring. Returns the canonical name of this class.
[read-only]
ClassLoaderClassLoader. Returns the class loader which was used to load the class represented by this Class.
[read-only]
ComponentTypeClass. Returns a Class object which represents the component type if this class represents an array type.
[read-only]
DeclaringClassClass. 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]
EnclosingClassClass. Returns the class enclosing this class.
[read-only]
EnclosingConstructorJava.Lang.Reflect.Constructor. Returns the enclosing Constructor of this Class, if it is an anonymous or local/automatic class; otherwise null.
[read-only]
EnclosingMethodJava.Lang.Reflect.Method. Returns the enclosing Method of this Class, if it is an anonymous or local/automatic class; otherwise null.
[read-only]
GenericSuperclassJava.Lang.Reflect.IType. Returns the Type that represents the superclass of this class.
[read-only]
IsAnnotationbool. Tests whether this Class represents an annotation class.
[read-only]
IsAnonymousClassbool. Tests whether the class represented by this Class is anonymous.
[read-only]
IsArraybool. Tests whether the class represented by this Class is an array class.
[read-only]
IsEnumbool. Tests whether the class represented by this Class is an enum.
[read-only]
IsInterfacebool. Tests whether this Class represents an interface.
[read-only]
IsLocalClassbool. Tests whether the class represented by this Class is defined locally.
[read-only]
IsMemberClassbool. Tests whether the class represented by this Class is a member class.
[read-only]
IsPrimitivebool. Tests whether this Class represents a primitive type.
[read-only]
IsSyntheticbool. Tests whether this Class represents a synthetic type.
[read-only]
Modifiersint. Returns an integer that represents the modifiers of the class represented by this Class.
[read-only]
Namestring. Returns the name of the class represented by this Class.
[read-only]
PackagePackage. Returns the Package of which the class represented by this Class is a member.
[read-only]
ProtectionDomainJava.Security.ProtectionDomain. Returns null.
[read-only]
SimpleNamestring. Returns the simple name of the class represented by this Class as defined in the source code.
[read-only]
SuperclassClass. Returns the Class object which represents the superclass of the class represented by this Class.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AsSubclass(Class) : Class
Documentation for this section has not yet been entered.
Cast(Object) : Object
Casts the given object to the type represented by this Class.
DesiredAssertionStatus() : bool
Returns the assertion status for the class represented by this Class.
static
ForName(string) : Class
Returns a Class object which represents the class with the given name.
static
ForName(string, bool, ClassLoader) : Class
Returns a Class object which represents the class with the given name.
static
FromType(Type) : Class
Documentation for this section has not yet been entered.
GetAnnotation(Class) : Object
Documentation for this section has not yet been entered.
GetAnnotations() : Java.Lang.Annotation.IAnnotation[]
Returns an array containing all the annotations of this class.
GetClasses() : Class[]
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[]) : Java.Lang.Reflect.Constructor
Documentation for this section has not yet been entered.
GetConstructors() : Java.Lang.Reflect.Constructor[]
Returns an array containing Constructor objects for all public constructors for this Class.
GetDeclaredAnnotations() : Java.Lang.Annotation.IAnnotation[]
Returns the annotations that are directly defined on the class represented by this Class.
GetDeclaredClasses() : Class[]
Returns an array containing Class objects for all classes, interfaces, enums and annotations that are members of this class.
GetDeclaredConstructor(params Class[]) : Java.Lang.Reflect.Constructor
Documentation for this section has not yet been entered.
GetDeclaredConstructors() : Java.Lang.Reflect.Constructor[]
Returns an array containing Constructor objects for all constructors declared in the class represented by this Class.
GetDeclaredField(string) : Java.Lang.Reflect.Field
Returns a Field object for the field with the given name which is declared in the class represented by this Class.
GetDeclaredFields() : Java.Lang.Reflect.Field[]
Returns an array containing Field objects for all fields declared in the class represented by this Class.
GetDeclaredMethod(string, params Class[]) : Java.Lang.Reflect.Method
Documentation for this section has not yet been entered.
GetDeclaredMethods() : Java.Lang.Reflect.Method[]
Returns an array containing Method objects for all methods declared in the class represented by this Class.
GetEnumConstants() : Object[]
Returns the enum constants associated with this Class.
GetField(string) : Java.Lang.Reflect.Field
Returns a Field object which represents the public field with the given name.
GetFields() : Java.Lang.Reflect.Field[]
Returns an array containing Field objects for all public fields for the class C represented by this Class.
GetGenericInterfaces() : Java.Lang.Reflect.IType[]
Returns the Java.Lang.Reflect.ITypes of the interfaces that this Class directly implements.
GetInterfaces() : Class[]
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[]) : Java.Lang.Reflect.Method
Documentation for this section has not yet been entered.
GetMethods() : Java.Lang.Reflect.Method[]
Returns an array containing Method objects for all public methods for the class C represented by this Class.
GetResource(string) : Java.Net.URL
Returns the URL of the given resource, or null if the resource is not found.
GetResourceAsStream(string) : System.IO.Stream
Returns a read-only stream for the contents of the given resource, or null if the resource is not found.
GetSigners() : Object[]
Returns null.
GetTypeParameters() : Java.Lang.Reflect.ITypeVariable[]
Returns an array containing TypeVariable objects for type variables declared by the generic class represented by this Class.
IsAnnotationPresent(Class) : bool
Documentation for this section has not yet been entered.
IsAssignableFrom(Class) : bool
Documentation for this section has not yet been entered.
IsInstance(Object) : bool
Tests whether the given object can be cast to the class represented by this Class.
NewInstance() : Object
Returns a new instance of the class represented by this Class, created by invoking the default (that is, zero-argument) constructor.