/** * Returns an iterator for all annotation inside this * annotation bag or <code>null</code> if the bag is empty. * * @return an iterator for all annotations in the bag or <code>null</code> * @since 3.1 */ public Iterator<Annotation> iterator() { if (!isEmpty()) return fAnnotations.iterator(); return null; } }
for (int i= 0; i < size; i++) { String type= fConfiguredAnnotationTypes.get(i); map.put(type, new AnnotationBag(type)); Position position= model.getPosition(annotation); if (includes(summaryRegions, position)) bag.add(annotation); if (!bag.isEmpty()) additions.put(bag, new Position(summaryAnchor.getOffset(), summaryAnchor.getLength()));
Iterator<Annotation> e= bag.iterator(); while (e.hasNext()) { annotation= e.next();
for (int i= 0; i < size; i++) { String type= fConfiguredAnnotationTypes.get(i); map.put(type, new AnnotationBag(type)); Position position= model.getPosition(annotation); if (includes(summaryRegions, position)) bag.add(annotation); if (!bag.isEmpty()) additions.put(bag, new Position(summaryAnchor.getOffset(), summaryAnchor.getLength()));
Iterator<Annotation> e= bag.iterator(); while (e.hasNext()) { annotation= e.next();
/** * Returns an iterator for all annotation inside this * annotation bag or <code>null</code> if the bag is empty. * * @return an iterator for all annotations in the bag or <code>null</code> * @since 3.1 */ public Iterator<Annotation> iterator() { if (!isEmpty()) return fAnnotations.iterator(); return null; } }