|
Spec-Zone .ru
спецификации, руководства, описания, API
|
A field is a class, interface, or enum with an associated value. Methods in the
java.lang.reflect.Field class can retrieve information about the field, such as its name, type, modifiers, and annotations. (The section
public or transientWhen writing an application such as a class browser, it might be useful to find out which fields belong to a particular class. A class's fields are identified by invoking
Class.getFields(). The
method returns an array of
objects containing one object per accessible public field.
A public field is accessible if it is a member of either:
A field may be a class (instance) field, such as , a static field, such as , or an enum constant, such as .