public class CummulativeAnnotationsItem extends SimpleAnnotationsItem
NO_ANNOTATIONS
NO_ANNOTATION_ITEMS
Constructor and Description |
---|
CummulativeAnnotationsItem(MetaDataContext context,
boolean includeParent)
Create a new CummulativeAnnotationsItem.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkValid()
Check whether we are valid
|
AnnotationItem<? extends Annotation>[] |
getAnnotations()
Get the annotations
|
Annotation[] |
getValue()
Get the value
|
protected void |
init(long validTime)
Initialise
|
boolean |
isCachable()
Whether the item is cachable
|
boolean |
isValid()
Whether the value is valid
|
setAnnotationItems
public CummulativeAnnotationsItem(MetaDataContext context, boolean includeParent)
context
- the contextincludeParent
- whether to include the parentpublic Annotation[] getValue()
Item
getValue
in interface Item<Annotation[]>
getValue
in class SimpleAnnotationsItem
public AnnotationItem<? extends Annotation>[] getAnnotations()
AnnotationsItem
getAnnotations
in interface AnnotationsItem
getAnnotations
in class SimpleAnnotationsItem
public boolean isCachable()
Item
isCachable
in interface Item<Annotation[]>
isCachable
in class SimpleItem<Annotation[]>
public boolean isValid()
Item
isValid
in interface Item<Annotation[]>
isValid
in class SimpleItem<Annotation[]>
protected void checkValid()
protected void init(long validTime)
validTime
- the valid timeCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.