public class SubTypeAnnotator extends Object implements Annotator, Serializable
Constructor and Description |
---|
SubTypeAnnotator(AnnotationType annotationType,
boolean nonOverlapping,
Collection<AnnotationType> subTypes)
Instantiates a new Sub type annotator.
|
SubTypeAnnotator(AnnotationType annotationType,
Collection<AnnotationType> subTypes)
Instantiates a new Sub type annotator.
|
Modifier and Type | Method and Description |
---|---|
void |
annotate(Document document)
Annotates a document with one or more annotations of the types defined in
provided() . |
Set<AnnotatableType> |
satisfies()
The set of annotation types that this annotator satisfies by this annotator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion, requires
public SubTypeAnnotator(@NonNull AnnotationType annotationType, boolean nonOverlapping, @NonNull Collection<AnnotationType> subTypes)
annotationType
- the annotation typenonOverlapping
- the non overlappingsubTypes
- the sub typesIllegalArgumentException
- - If one or more of the sub types is not an instance of annotationTypepublic SubTypeAnnotator(@NonNull AnnotationType annotationType, @NonNull Collection<AnnotationType> subTypes)
annotationType
- the annotation typesubTypes
- the sub typespublic void annotate(Document document)
Annotator
provided()
.public Set<AnnotatableType> satisfies()
Annotator
Copyright © 2016. All rights reserved.