|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.jface.text.source.projection.AnnotationBag
A bag of annotations.
This class is not intended to be subclassed.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.text.source.Annotation |
|---|
TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
AnnotationBag(String type)
Creates a new annotation bag. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.jface.text.source.Annotation |
|---|
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnnotationBag(String type)
type - the annotation type| Method Detail |
public 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.
null
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.