abstract class AnnotationContainer extends Object
Constructor and Description |
---|
AnnotationContainer() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
annotate(Annotation annotation)
Adds an annotation to this container.
|
(package private) abstract void |
annotateAll(Collection<Annotation> annotations)
Adds all annotations of the given collection to this container.
|
(package private) abstract Collection<Annotation> |
annotations()
Returns a mutable collection of annotations.
|
(package private) abstract Iterator<Annotation> |
iterator(SpanNode node)
Returns an Iterator over all annotations that annotate the given node.
|
(package private) abstract Iterator<Annotation> |
iteratorRecursive(SpanNode node)
Returns a recursive Iterator over all annotations that annotate the given node and its subnodes.
|
abstract void annotateAll(Collection<Annotation> annotations)
annotations
- the annotations to add.abstract void annotate(Annotation annotation)
annotation
- the annotation to add.abstract Collection<Annotation> annotations()
abstract Iterator<Annotation> iterator(SpanNode node)
node
- the node to return annotations for.abstract Iterator<Annotation> iteratorRecursive(SpanNode node)
node
- the node to recursively return annotations for.Copyright © 2018. All rights reserved.