public final class AnnotationElement extends AbstractElement implements Element
annotatedElement, name
Constructor and Description |
---|
AnnotationElement(java.lang.reflect.Method method)
Creates a new AnnotationProperty based on the given method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
declaringClass() |
ValueHandler |
in(java.lang.Object target)
Handles this element on the given target (if applies).
|
boolean |
isReadable() |
boolean |
isWritable() |
java.lang.Class<?> |
type() |
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent, isSpecific, name, set, target, toString, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnnotationElement(java.lang.reflect.Method method)
method
- the method that allows access to the property.public java.lang.Class<?> type()
type
in interface Element
type
in class AbstractElement
public ValueHandler in(java.lang.Object target)
Element
This method may throw exceptions in case of the element cannot be handled or an error occurring while handling the element.
in
in interface Element
in
in interface Result<ValueHandler,java.lang.Object>
target
- the target that contains this element.public java.lang.Class<?> declaringClass()
declaringClass
in interface Element
public boolean isReadable()
isReadable
in interface Element
true
if the value of this element can be read.public boolean isWritable()
isWritable
in interface Element
true
if the value of this element can be change.