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 |
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, setTypepublic 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 iterator()
null if the bag is empty.nullGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.