public class FieldGetter extends Object
| Constructor and Description |
|---|
FieldGetter() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get2LevelParentFieldValue(Object instance,
String fieldName) |
static <T> T |
getParentFieldValue(Object instance,
String fieldName) |
static <T> T |
getValue(Object instance,
String fieldName) |
public static <T> T getValue(Object instance, String fieldName) throws IllegalAccessException, NoSuchFieldException
public static <T> T getParentFieldValue(Object instance, String fieldName) throws IllegalAccessException, NoSuchFieldException
public static <T> T get2LevelParentFieldValue(Object instance, String fieldName) throws IllegalAccessException, NoSuchFieldException
Copyright © 2022 The Apache Software Foundation. All rights reserved.