public class ClassPropertyFetcher extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClassPropertyFetcher.ReferenceInstanceCallback |
Modifier and Type | Method and Description |
---|---|
static void |
clearClassPropertyFetcherCache() |
static ClassPropertyFetcher |
forClass(Class<?> c) |
static ClassPropertyFetcher |
forClass(Class<?> c,
ClassPropertyFetcher.ReferenceInstanceCallback callback) |
String[] |
getPropertiesWithFields() |
PropertyDescriptor[] |
getPropertyDescriptors() |
Class<?> |
getPropertyType(String name) |
Class<?> |
getPropertyType(String name,
boolean onlyInstanceProperties) |
Object |
getPropertyValue(String name) |
Object |
getPropertyValue(String name,
boolean onlyInstanceProperties) |
<T> T |
getPropertyValue(String name,
Class<T> c) |
Object |
getReference() |
<T> T |
getStaticPropertyValue(String name,
Class<T> c) |
boolean |
isReadableProperty(String name) |
<T> T |
returnOnlyIfInstanceOf(Object value,
Class<T> type) |
public static void clearClassPropertyFetcherCache()
public static ClassPropertyFetcher forClass(Class<?> c)
public static ClassPropertyFetcher forClass(Class<?> c, ClassPropertyFetcher.ReferenceInstanceCallback callback)
public Object getReference()
public PropertyDescriptor[] getPropertyDescriptors()
public boolean isReadableProperty(String name)
public String[] getPropertiesWithFields()