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 transient
When 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
getFields()
Field
A public field is accessible if it is a member of either:
A field may be a class (instance) field, such as
java.io.Reader.lock
java.lang.Integer.MAX_VALUE
java.lang.Thread.State.WAITING