img
Method
Description
Annotation[ ] getAnnotations( )
Obtains all annotations associated with the invoking
object and stores them in an array of Annotation
objects. Returns a reference to this array.
Class<?>[ ] getClasses( )
Returns a Class object for each of the public classes
and inter faces that are members of the invoking
object.
ClassLoader getClassLoader( )
Returns the ClassLoader object that loaded the class
or inter face used to instantiate the invoking object.
Constructor<T>
Returns a Constructor object that represents the
getConstructor(Class<?> ... paramTypes) constructor for the invoking object that has the
throws NoSuchMethodException,
parameter types specified by paramTypes.
SecurityException
Constructor<?>[ ] getConstructors( )
Obtains a Constructor object for each public
throws SecurityException
constructor of the invoking object and stores them
in an array. Returns a reference to this array.
Annotation[ ] getDeclaredAnnotations( )
Obtains an Annotation object for all the annotations
that are declared by the invoking object and stores
them in an array. Returns a reference to this array.
(Inherited annotations are ignored.)
Constructor<?>[ ] getDeclaredConstructors( ) Obtains a Constructor object for each constructor
throws SecurityException
declared by the invoking object and stores them in
an array. Returns a reference to this array.
(Superclass constructors are ignored.)
Field[ ] getDeclaredFields( )
Obtains a Field object for each field declared by
throws SecurityException
this class and stores them in an array. Returns a
reference to this array. (Inherited fields are ignored.)
Method[ ] getDeclaredMethods( )
Obtains a Method object for each method declared
throws SecurityException
by this class or inter face and stores them in an
array. Returns a reference to this array. (Inherited
methods are ignored.)
Field getField(String fieldName)
Returns a Field object that represents the field
throws NoSuchMethodException,
specified by fieldName for the invoking object.
SecurityException
Field[ ] getFields( )
Obtains a Field object for each public field of the
throws SecurityException
invoking object and stores them in an array. Returns
a reference to this array.
Class<?>[ ] getInter faces( )
When invoked on an object, this method returns
an array of the inter faces implemented by the class
type of the object. When invoked on an inter face,
this method returns an array of inter faces extended
by the inter face.
TABLE 16-15
A Sampling of Methods Defined by Class (continued)
Search WWH :
Custom Search
Previous Page
Java SE 6 Topic Index
Next Page
Java SE 6 Bookmarks
Home