public class ReflectionUtils extends Object
ReflectionUtils is in the
xerces package and not in the org.eclipse.lemminx.utils package.| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getFieldValue(Object instance,
String name)
Returns the field value of the given instance and field name.
|
public static <T> T getFieldValue(Object instance, String name) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
T - the field value type.instance - the instance.name - the field name.NoSuchFieldExceptionSecurityExceptionIllegalArgumentExceptionIllegalAccessExceptionCopyright © 2021. All rights reserved.