A MethodProperty is a Property which is accessed through accessor
methods (setX, getX). It is possible to have a MethodProperty which has only setter,
only getter, or both. It is not possible to have a MethodProperty which has neither
setter nor getter.
| Modifier and Type | Field and Description |
|---|---|
| private final java. | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Type | |
| public Object | |
| public <A extends Annotation> A | Returns: property's annotation for the given type ornull if it's not presentthe type of the annotation to be returned annotationType)Implements abstract org. null if it's not present.
|
| public List | Returns: the annotations that are present on this property or emptyList if there're no
annotationsImplements abstract org. List if there're no annotations.
|
| public boolean | |
| public boolean | |
| public void |
| property | back to summary |
|---|---|
| private final java. | |
| readable | back to summary |
|---|---|
| private final boolean readable | |
| writable | back to summary |
|---|---|
| private final boolean writable | |
| MethodProperty | back to summary |
|---|---|
| public MethodProperty(java. | |
| discoverGenericType | back to summary |
|---|---|
| private static Type discoverGenericType(java. | |
| get | back to summary |
|---|---|
| public Object get(Object object) Implements abstract org.
| |
| getAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getAnnotation(Class<A> annotationType) Implements abstract org. Returns property's annotation for the given type or
| |
| getAnnotations | back to summary |
|---|---|
| public List Implements abstract org. Returns the annotations that are present on read and write methods of this property or empty
| |
| isReadable | back to summary |
|---|---|
| public boolean isReadable() Overrides org.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Overrides org.
| |
| set | back to summary |
|---|---|
| public void set(Object object, Object value) throws Exception Implements abstract org.
| |