MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getContainedAnnotations

Method getContainedAnnotations

src/main/java/gate/Utils.java:374–378  ·  view source on GitHub ↗

Get all the annotations from the source annotation set that lie within the range of the containing annotation. @param sourceAnnotationSet the annotation set from which to select @param containingAnnotation the annotation whose range must contain the selected annotations @return the AnnotationSet co

(
    AnnotationSet sourceAnnotationSet,
    Annotation containingAnnotation)

Source from the content-addressed store, hash-verified

372 * the offset range of the containingAnnotation
373 */
374 public static AnnotationSet getContainedAnnotations(
375 AnnotationSet sourceAnnotationSet,
376 Annotation containingAnnotation) {
377 return getContainedAnnotations(sourceAnnotationSet,containingAnnotation,"");
378 }
379
380 /**
381 * Get all the annotations of type targetType

Callers

nothing calls this directly

Calls 11

equalsMethod · 0.65
getContainedMethod · 0.65
getOffsetMethod · 0.65
getStartNodeMethod · 0.65
getEndNodeMethod · 0.65
getMethod · 0.65
getDocumentMethod · 0.65
firstNodeMethod · 0.65
lastNodeMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected