class SpanNode2AnnotationContainer extends AnnotationContainer
Modifier and Type | Class and Description |
---|---|
private class |
SpanNode2AnnotationContainer.AnnotationCollectionIterator |
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.collections.map.MultiValueMap |
spanNode2Annotation |
Constructor and Description |
---|
SpanNode2AnnotationContainer() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
annotate(Annotation a)
Adds an annotation to this container.
|
(package private) void |
annotateAll(Collection<Annotation> annotations)
Adds all annotations of the given collection to this container.
|
(package private) Collection<Annotation> |
annotations()
Returns a mutable collection of annotations.
|
boolean |
equals(Object o) |
int |
hashCode() |
(package private) Iterator<Annotation> |
iterator(SpanNode node)
Returns an Iterator over all annotations that annotate the given node.
|
(package private) Iterator<Annotation> |
iteratorRecursive(SpanNode node)
Returns a recursive Iterator over all annotations that annotate the given node and its subnodes.
|
private final org.apache.commons.collections.map.MultiValueMap spanNode2Annotation
void annotateAll(Collection<Annotation> annotations)
AnnotationContainer
annotateAll
in class AnnotationContainer
annotations
- the annotations to add.void annotate(Annotation a)
AnnotationContainer
annotate
in class AnnotationContainer
a
- the annotation to add.Collection<Annotation> annotations()
AnnotationContainer
annotations
in class AnnotationContainer
Iterator<Annotation> iterator(SpanNode node)
AnnotationContainer
iterator
in class AnnotationContainer
node
- the node to return annotations for.Iterator<Annotation> iteratorRecursive(SpanNode node)
AnnotationContainer
iteratorRecursive
in class AnnotationContainer
node
- the node to recursively return annotations for.Copyright © 2017. All rights reserved.