public class SimpleAnnotationsItem extends SimpleItem<Annotation[]> implements AnnotationsItem
Modifier and Type | Field and Description |
---|---|
static SimpleAnnotationsItem |
NO_ANNOTATIONS
No annotations
|
NO_ANNOTATION_ITEMS
Modifier | Constructor and Description |
---|---|
protected |
SimpleAnnotationsItem()
Create a new SimpleAnnotationsItem with no annotations
|
|
SimpleAnnotationsItem(AnnotationItem<? extends Annotation>[] annotationItems)
Create a new SimpleAnnotationsItem.
|
Modifier and Type | Method and Description |
---|---|
AnnotationItem<? extends Annotation>[] |
getAnnotations()
Get the annotations
|
Annotation[] |
getValue()
Get the value
|
protected void |
setAnnotationItems(AnnotationItem<? extends Annotation>[] annotationItems)
Set the annotation items
|
isCachable, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCachable, isValid
public static final SimpleAnnotationsItem NO_ANNOTATIONS
protected SimpleAnnotationsItem()
public SimpleAnnotationsItem(AnnotationItem<? extends Annotation>[] annotationItems)
annotationItems
- the annotation itemspublic Annotation[] getValue()
Item
getValue
in interface Item<Annotation[]>
public AnnotationItem<? extends Annotation>[] getAnnotations()
AnnotationsItem
getAnnotations
in interface AnnotationsItem
protected void setAnnotationItems(AnnotationItem<? extends Annotation>[] annotationItems)
annotationItems
- the annotation itemsCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.