Class.getField
Class Overview | Class Members |
This Package |
All Packages
public Field getField( String name ) throws NoSuchFieldException, SecurityException
Description
Returns a Field object that reflects the specified public
member field of the class or interface represented by
this Class object. The name parameter is a String specifying
the simple name of the desired field.
The field to be reflected is located by searching all the
member fields of the class or interface represented by this
Class object for a public field with the specified name.
See The Java Language Specification, sections 8.2 and 8.3.
Exceptions
NoSuchFieldException
if a field with the specified name is
not found.
Exceptions
SecurityException
if access to the information is denied.
See Also
Field