138139140141142143144145146
String bindingName) { AnnotationSet set = bindings.get(bindingName); if (set == null) { throw new GateRuntimeException("No bindings named " + bindingName); } return new ImmutableAnnotationSetImpl(set.getDocument(), set) { private static final long serialVersionUID = -6703131102439043539L; }; }
164165166167168169170171172
String typeName) { AnnotationSet set = annset.get(typeName); if (set == null) { throw new GateRuntimeException("Got a null set for type " + typeName); } return new ImmutableAnnotationSetImpl(annset.getDocument(), set) { private static final long serialVersionUID = -6703131102439043539L; }; }
280281282283284285286287288289
for (Annotation ann : annset) { if (startOffset(ann) == offset) { annotationsToAdd.add(ann); } } return new ImmutableAnnotationSetImpl(annset.getDocument(), annotationsToAdd) { private static final long serialVersionUID = -6703131102439043539L; }; }
380381382383384385386387388389
for (Annotation ann : annset) { if (endOffset(ann) == offset) { annotationsToAdd.add(ann); } } return new ImmutableAnnotationSetImpl(annset.getDocument(), annotationsToAdd) { private static final long serialVersionUID = -6703131102439043539L; }; }
430431432433434435436437438439440
if (type == null || (type != null && ann.getType().equals(type))) { annotationsToAdd.add(ann); } } } return new ImmutableAnnotationSetImpl(annset.getDocument(), annotationsToAdd) { private static final long serialVersionUID = -6703131102439043539L; }; } }
585586587588589590591592593
for (Annotation a : annset) { if (startOffset(a) == offset) { anns.add(a); } } return new ImmutableAnnotationSetImpl(annset.getDocument(), anns) { private static final long serialVersionUID = -6703131102439043539L; }; }
614615616617618619620621622
643644645646647648649650651
for (Annotation a : annset) { if (Utils.length(a) == length) { anns.add(a); } } return new ImmutableAnnotationSetImpl(annset.getDocument(), anns) { private static final long serialVersionUID = -6703131102439043539L; }; }
672673674675676677678679680
696697698699700701702703704
for (Annotation a : annset) { if (Utils.length(a) > longerthanthis) { anns.add(a); } } return new ImmutableAnnotationSetImpl(annset.getDocument(), anns) { private static final long serialVersionUID = -6703131102439043539L; }; }