The following table summarizes the classes that comprise the reflection API. The
So on the class basis:
For each of these three types of class components -- constructors, fields, and methods -- see here for more--http://www.ibm.com/developerworks/library/j-dyn0603/
Class
and Object
classes are in the java.lang package. The other classes are contained in the java.lang.reflect package.Class | Description |
---|---|
Array | Provides static methods to dynamically create and access arrays. |
Class | Represents, or reflects, classes and interfaces. |
Constructor | Provides information about, and access to, a constructor for a class. Allows you to instantiate a class dynamically. |
Field | Provides information about, and dynamic access to, a field of a class or an interface. |
Method | Provides information about, and access to, a single method on a class or interface. Allows you to invoke the method dynamically. |
Modifier | Provides static methods and constants that allow you to get information about the access modifiers of a class and its members. |
Object | Provides the getClass method. |
For each of these three types of class components -- constructors, fields, and methods -- see here for more--http://www.ibm.com/developerworks/library/j-dyn0603/
No comments:
Post a Comment