private Set<OWLAnnotation> parseAnnotationList() { String sep = COMMA.keyword(); Set<OWLAnnotation> annos = new HashSet<>(); while (COMMA.matches(sep)) { potentialKeywords.clear(); Set<OWLAnnotation> annotations = parseAnnotations(); OWLAnnotation anno = parseAnnotation(); anno = anno.getAnnotatedAnnotation(annotations); annos.add(anno); sep = peekToken(); if (COMMA.matches(sep)) { consumeToken(); } } return annos; }
private Set<OWLAnnotation> parseAnnotationList() { String sep = COMMA.keyword(); Set<OWLAnnotation> annos = new HashSet<>(); while (COMMA.matches(sep)) { potentialKeywords.clear(); Set<OWLAnnotation> annotations = parseAnnotations(); OWLAnnotation anno = parseAnnotation(); anno = anno.getAnnotatedAnnotation(annotations); annos.add(anno); sep = peekToken(); if (COMMA.matches(sep)) { consumeToken(); } } return annos; }
private Set<OWLAnnotation> parseAnnotationList() { String sep = COMMA.keyword(); Set<OWLAnnotation> annos = new HashSet<OWLAnnotation>(); while (COMMA.matches(sep)) { potentialKeywords.clear(); Set<OWLAnnotation> annotations = parseAnnotations(); OWLAnnotation anno = parseAnnotation(); if (anno != null) { anno = anno.getAnnotatedAnnotation(annotations); annos.add(anno); } sep = peekToken(); if (COMMA.matches(sep)) { consumeToken(); } } return annos; }
private Set<OWLAnnotation> parseAnnotationList() { String sep = COMMA.keyword(); Set<OWLAnnotation> annos = new HashSet<>(); while (COMMA.matches(sep)) { potentialKeywords.clear(); Set<OWLAnnotation> annotations = parseAnnotations(); OWLAnnotation anno = parseAnnotation(); anno = anno.getAnnotatedAnnotation(annotations); annos.add(anno); sep = peekToken(); if (COMMA.matches(sep)) { consumeToken(); } } return annos; }
private Set<OWLAnnotation> parseAnnotationList() { String sep = COMMA.keyword(); Set<OWLAnnotation> annos = new HashSet<>(); while (COMMA.matches(sep)) { potentialKeywords.clear(); Set<OWLAnnotation> annotations = parseAnnotations(); OWLAnnotation anno = parseAnnotation(); anno = anno.getAnnotatedAnnotation(annotations); annos.add(anno); sep = peekToken(); if (COMMA.matches(sep)) { consumeToken(); } } return annos; }