public interface PropertyInfo
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Returns the annotation on the property's member for the
annotationClass or null
if none exists. |
Type |
getGenericType()
Returns the generic type represented by the property.
|
Class<?> |
getInitialType()
Returns the initial type in the member declaring class' type hierarchy from which this property
info was initiated.
|
Member |
getMember()
Returns the encapsulated member or
null if none exists. |
String |
getName()
Returns the property name.
|
PropertyType |
getPropertyType()
Returns the member type.
|
Class<?> |
getType()
Returns the type represented by the property.
|
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass or null
if none exists.T - annotation typeannotationClass - to get annotation forType getGenericType()
PropertyType.FIELD this will be the field's
generic type.
PropertyType.METHOD this will be the method's
return type.
PropertyType.METHOD this will be the single parameter's
generic type.
PropertyType.GENERIC this will be the same as
getType().
Class<?> getInitialType()
Member getMember()
null if none exists.String getName()
PropertyType getPropertyType()
Class<?> getType()
Copyright © 2011–2018. All rights reserved.