The Reflection Classes
Home ] Up ] The Class Class ] Examining a Class ] Array Name Encodings ] Creating a Class Instance ] [ The Reflection Classes ]

 

Reconstructing a Class
Inspecting a Class Instance
Instantiating an Object
Creating an Array
Calling a Method
An Example

 

The package java.lang.reflect contains a number of classes to supplement the information that Class can provide:

  • Constructor -- describes a constructor for a class
  • Field -- describes a data field for a class
  • Method -- describes a method for a class
  • Modifier -- describes what modifiers (static, final, abstract, etc.) associated with an element.

In addition, java.lang.reflect contains an interface:

  • Member

All reflection classes that represent a class member (Constructor, Field, Method) implement this interface.

 

The page was last updated February 19, 2008