final public ElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentListImpl comments = getComments(); Token t; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; t = jj_consume_token(PREFIXED_NAME); String qn = t.image; int colon = qn.indexOf(':'); String prefix = qn.substring(0, colon); String ns = lookupPrefix(prefix, t); if (ns == SchemaBuilder.INHERIT_NS) { error("inherited_annotation_namespace", t); ns = ""; } else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) { error("relax_ng_namespace", t); ns = ""; } else { if (ns.length() == 0) prefix = null; } eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix, makeLocation(t), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentListImpl comments = getComments(); Token t; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; t = jj_consume_token(PREFIXED_NAME); String qn = t.image; int colon = qn.indexOf(':'); String prefix = qn.substring(0, colon); String ns = lookupPrefix(prefix, t); if (ns == SchemaBuilder.INHERIT_NS) { error("inherited_annotation_namespace", t); ns = ""; } else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) { error("relax_ng_namespace", t); ns = ""; } else { if (ns.length() == 0) prefix = null; } eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix, makeLocation(t), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentListImpl comments = getComments(); Token t; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; t = jj_consume_token(PREFIXED_NAME); String qn = t.image; int colon = qn.indexOf(':'); String prefix = qn.substring(0, colon); String ns = lookupPrefix(prefix, t); if (ns == SchemaBuilder.INHERIT_NS) { error("inherited_annotation_namespace", t); ns = ""; } else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) { error("relax_ng_namespace", t); ns = ""; } else { if (ns.length() == 0) prefix = null; } eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix, makeLocation(t), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = Identifier(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = Identifier(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = UnprefixedName(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = UnprefixedName(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = UnprefixedName(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
final public ElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentListImpl comments = getComments(); LocatedString name; ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab; name = Identifier(); eab = sb.makeElementAnnotationBuilder("", name.getString(), null, name.getLocation(), comments, getContext()); AnnotationElementContent(eab); {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }