Class Members

Class Members

Class Overview | This Package | All Packages

Methods
Name Description
forName(String) Returns the Class object associated with the class with the given string name.
getClasses() Returns an array containing Class objects representing all the public classes and interfaces that are members of the class represented by this Class object.
getClassLoader() Determines the class loader for the class.
getComponentType() If this class represents an array type, returns the Class object representing the component type of the array; otherwise returns null.
getConstructor(Class[]) Returns a Constructor object that reflects the specified public constructor of the class represented by this Class object.
getConstructors() Returns an array containing Constructor objects reflecting all the public constructors of the class represented by this Class object.
getDeclaredClasses() Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.
getDeclaredConstructor(Class[]) Returns a Constructor object that reflects the specified declared constructor of the class or interface represented by this Class object.
getDeclaredConstructors() Returns an array of Constructor objects reflecting all the constructors declared by the class represented by this Class object.
getDeclaredField(String) Returns a Field object that reflects the specified declared field of the class or interface represented by this Class object.
getDeclaredFields() Returns an array of Field objects reflecting all the fields declared by the class or interface represented by this Class object.
getDeclaredMethod(String, Class[]) Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object.
getDeclaredMethods() Returns an array of Method objects reflecting all the methods declared by the class or interface represented by this Class object.
getDeclaringClass() If the class or interface represented by this Class object is a member of another class, returns the Class object representing the class of which it is a member (its declaring class).
getField(String) Returns a Field object that reflects the specified public member field of the class or interface represented by this Class object.
getFields() Returns an array containing Field objects reflecting all the accessible public fields of the class or interface represented by this Class object.
getInterfaces() Determines the interfaces implemented by the class or interface represented by this object.
getMethod(String, Class[]) Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.
getMethods() Returns an array containing Method objects reflecting all the public member methods of the class or interface represented by this Class object, including those declared by the class or interface and and those inherited from superclasses and superinterfaces.
getModifiers() Returns the Java language modifiers for this class or interface, encoded in an integer.
getName() Returns the fully-qualified name of the type (class, interface, array, or primitive) represented by this Class object, as a String.
getResource(String)  
getResourceAsStream(String) Find a resource with a given name.
getSigners() Get the signers of this class.
getSuperclass() If this object represents any class other than the class Object, then the object that represents the superclass of that class is returned.
isArray() If this Class object represents an array type, returns true, otherwise returns false.
isAssignableFrom(Class) Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified Class parameter.
isInstance(Object) This method is the dynamic equivalent of the Java language instanceof operator.
isInterface() Determines if the specified Class object represents an interface type.
isPrimitive() Determines if the specified Class object represents a primitive Java type.
newInstance() Creates a new instance of a class.
toString() Converts the object to a string.