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