public class ListElement extends AbstractElement implements Element
annotatedElement, name
Constructor and Description |
---|
ListElement(java.util.List list,
int index) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
declaringClass() |
ValueHandler |
in(java.lang.Object list)
Handles this element on the given target (if applies).
|
boolean |
isReadable() |
boolean |
isSpecific()
Checks if this element is specific for a target.
|
boolean |
isWritable() |
<E> E |
target()
Returns the target for this element in case of a
specific one. |
java.lang.Class<?> |
type() |
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent, name, set, toString, value
public <E> E target()
Element
specific
one.target
in interface Element
target
in class AbstractElement
specific
or null
if not.public boolean isSpecific()
Element
true
, then the methods Element.value()
and
Element.set(Object)
can be used.isSpecific
in interface Element
isSpecific
in class AbstractElement
true
if this element is specific for a target.public java.lang.Class declaringClass()
declaringClass
in interface Element
public java.lang.Class<?> type()
type
in interface Element
type
in class AbstractElement
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.public ValueHandler in(java.lang.Object list)
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>
list
- the target that contains this element.