public class AnnotationBag extends Annotation
This class is not intended to be subclassed.
TYPE_UNKNOWN
Constructor and Description |
---|
AnnotationBag(String type)
Creates a new annotation bag.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Annotation annotation)
Adds the given annotation to the annotation bag.
|
boolean |
isEmpty()
Returns whether the annotation bag is empty.
|
Iterator<Annotation> |
iterator()
Returns an iterator for all annotation inside this
annotation bag or
null if the bag is empty. |
void |
remove(Annotation annotation)
Removes the given annotation from the annotation bag.
|
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
public AnnotationBag(String type)
type
- the annotation typepublic void add(Annotation annotation)
annotation
- the annotation to addpublic void remove(Annotation annotation)
annotation
- the annotation to removepublic boolean isEmpty()
true
if the annotation bag is empty, false
otherwisepublic Iterator<Annotation> iterator()
null
if the bag is empty.null
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.