if ( iv_annotTypeArr == null ) {
return Collections.emptyMap();
}
final List<LookupAnnotation> list = new ArrayList<LookupAnnotation>();
// algorithm depends on a window for permutations
final JFSIndexRepository indexes = jcas.getJFSIndexRepository();
for ( int annotationType : iv_annotTypeArr ) {
final Iterator<Annotation> itr = indexes.getAnnotationIndex( annotationType ).iterator();
list.addAll( constrainToWindow( windowBegin, windowEnd, itr ) );
}
final Map<String, List<LookupAnnotation>> m = new HashMap<String, List<LookupAnnotation>>( 1 );
m.put( FirstTokenPermutationImpl.CTX_KEY_WINDOW_ANNOTATIONS, list );
return m;