-
Methods in java.lang that return Field
| Modifier and Type |
Method |
Description |
Field |
Class.getDeclaredField(String name) |
Returns a Field object for the field with the given name
which is declared in the class represented by this Class.
|
Field[] |
Class.getDeclaredFields() |
Returns an array containing Field objects for all fields declared
in the class represented by this Class.
|
Field |
Class.getField(String name) |
Returns a Field object which represents the public field with the
given name.
|
Field[] |
Class.getFields() |
Returns an array containing Field objects for all public fields
for the class C represented by this Class.
|
-
-
-
Methods in sun.misc with parameters of type Field
| Modifier and Type |
Method |
Description |
long |
Unsafe.objectFieldOffset(Field field) |
Gets the raw byte offset from the start of an object's memory to
the memory used to store the indicated instance field.
|