Comparable<Property>public class FieldProperty extends GenericProperty
A FieldProperty is a Property which is accessed as
a field, without going through accessor methods (setX, getX). The field may
have any scope (public, package, protected, private).
| Constructor | Description |
|---|---|
FieldProperty(Field field) |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
get(Object object) |
|
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
Returns property's annotation for the given type or
null if it's not present. |
List<Annotation> |
getAnnotations() |
Returns the annotations that are present on this property or empty
List if there're no annotations. |
void |
set(Object object,
Object value) |
getActualTypeArgumentsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, getName, getType, hashCode, isReadable, isWritable, toStringpublic FieldProperty(Field field)
public List<Annotation> getAnnotations()
PropertyList if there're no annotations.getAnnotations in class PropertyList if there're no annotationspublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
Propertynull if it's not present.getAnnotation in class PropertyA - class of the annotationannotationType - the type of the annotation to be returnednull if it's not presentCopyright © 2008–2018. All rights reserved.