static methods
to find a public field with specified name
in specified class.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Field | |
| public static Field | Returns: object that represents found fieldthe class that can have field type, String the name of field to find name)Finds public non-static field that is declared in public class. |
| public static Field | Returns: object that represents found fieldthe class that can have field type, String the name of field to find name)Finds public static field that is declared in public class. |
| FieldFinder | back to summary |
|---|---|
| private FieldFinder() Disable instantiation. | |
| findField | back to summary |
|---|---|
| public static Field findField(Class<?> type, String name) throws NoSuchFieldException Finds public field (static or non-static) that is declared in public class.
| |
| findInstanceField | back to summary |
|---|---|
| public static Field findInstanceField(Class<?> type, String name) throws NoSuchFieldException Finds public non-static field that is declared in public class.
| |
| findStaticField | back to summary |
|---|---|
| public static Field findStaticField(Class<?> type, String name) throws NoSuchFieldException Finds public static field that is declared in public class.
| |