final public NameClass NameClass(int context, Ref<AnnotationsImpl> ra) throws ParseException { AnnotationsImpl a; NameClass nc; a = AnnotationsImpl(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case 6: case ESCAPED_IDENTIFIER: case PREFIXED_NAME: nc = PrimaryNameClass(context, a); nc = AnnotateAfter(nc); nc = NameClassAlternatives(context, nc, ra); break; case 25: nc = AnyNameExceptClass(context, a, ra); break; case PREFIX_STAR: nc = NsNameExceptClass(context, a, ra); break; default: jj_la1[28] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public Pattern AnnotatedPrimaryExpr(boolean topLevel, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, Token[] except) throws ParseException { AnnotationsImpl a; Pattern p; ElementAnnotation e; Token t; a = AnnotationsImpl(); p = PrimaryExpr(topLevel, scope, a, except); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FANNOTATE: ; break; default: jj_la1[18] = jj_gen; break label_5; } t = jj_consume_token(FANNOTATE); e = AnnotationElement(false); if (topLevel) error("top_level_follow_annotation", t); else p = sb.annotateAfterPattern(p, e); } {if (true) return p;} throw new Error("Missing return statement in function"); }
final public void GrammarComponent(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope) throws ParseException { ElementAnnotation e; AnnotationsImpl a; a = AnnotationsImpl(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case IDENTIFIER: case ESCAPED_IDENTIFIER: Definition(section, scope, a); break; case 7: Include(section, scope, a); break; case 6: Div(section, scope, a); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); if (jj_2_4(2)) { e = AnnotationElementNotKeyword(); section.topLevelAnnotation(e);
final public Pattern Except(Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, Token[] except) throws ParseException { AnnotationsImpl a; Pattern p; Token t; Token[] innerExcept = new Token[1]; t = jj_consume_token(30); a = AnnotationsImpl(); p = PrimaryExpr(false, scope, a, innerExcept); checkExcept(innerExcept); except[0] = t; {if (true) return p;} throw new Error("Missing return statement in function"); }
final public void Param(DataPatternBuilder<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> dpb) throws ParseException { LocatedString name; AnnotationsImpl a; String value; a = AnnotationsImpl(); name = UnprefixedName(); jj_consume_token(2); a = addCommentsToLeadingAnnotations(a); value = Literal(); dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a); }
final public NameClass AnyNameExceptClass(int context, AnnotationsImpl a, Ref<AnnotationsImpl> ra) throws ParseException { Token t; NameClass nc; t = jj_consume_token(25); checkAnyName(context, t); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 30: nc = ExceptNameClass(context | IN_ANY_NAME); nc = sb.makeAnyName(nc, makeLocation(t), a); nc = AnnotateAfter(nc); break; default: jj_la1[36] = jj_gen; nc = sb.makeAnyName(makeLocation(t), a); nc = AnnotateAfter(nc); nc = NameClassAlternatives(context, nc, ra); } {if (true) return nc;} throw new Error("Missing return statement in function"); }
final public AnnotationsImpl AnnotationsImpl() throws ParseException { CommentListImpl comments = getComments(); AnnotationsImpl a = null; ElementAnnotation e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: a = sb.makeAnnotations(comments, getContext()); label_20: while (true) { e = Documentation(); a.addElement(e); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: comments = getComments(); if (comments != null) a.addLeadingComment(comments); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: jj_consume_token(1); if (a == null) a = sb.makeAnnotations(comments, getContext()); clearAttributeList(); annotationsIncludeElements = false; label_21: while (true) { if (jj_2_7(2)) { PrefixedAnnotationAttribute(a, false);
final public Pattern IncludedGrammar(IncludedGrammar<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> g) throws ParseException { AnnotationsImpl a; Pattern p; Preamble(); if (jj_2_2(2147483647)) { a = GrammarBody(g, g, getTopLevelCommentsAsAnnotations()); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: case 10: case DOCUMENTATION: case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: a = AnnotationsImpl(); jj_consume_token(10); jj_consume_token(11); a = GrammarBody(g, g, a); topLevelComments(g); jj_consume_token(12); break; default: jj_la1[12] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } p = afterPatternComments(g.endIncludedGrammar(sb.makeLocation(sourceUri, 1, 1), a)); jj_consume_token(0); {if (true) return p;} throw new Error("Missing return statement in function"); }
final public void AnnotationElementContent(ElementAnnotationBuilder<Location, ElementAnnotation, CommentListImpl> eab) throws ParseException { ElementAnnotation e; jj_consume_token(1); clearAttributeList(); label_23: while (true) { if (jj_2_8(2)) { AnnotationAttribute(eab); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case 6: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LITERAL: AnnotationElementLiteral(eab); label_25: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 8: jj_consume_token(8); AnnotationElementLiteral(eab); case ESCAPED_IDENTIFIER: case PREFIXED_NAME: e = AnnotationElement(true); eab.addElement(e); break;
Token t; ElementAnnotation e; p = AnnotatedPrimaryExpr(topLevel, scope, except); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: case 24: case 25: if (hadOccur != null) hadOccur[0] = true; p = afterPatternComments(p); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: t = jj_consume_token(23); checkExcept(except); p = sb.makeOneOrMore(p, makeLocation(t), null); break; case 24: t = jj_consume_token(24); checkExcept(except); p = sb.makeOptional(p, makeLocation(t), null); break; case 25: t = jj_consume_token(25); checkExcept(except); p = sb.makeZeroOrMore(p, makeLocation(t), null); break; default: jj_la1[25] = jj_gen; jj_consume_token(-1); throw new ParseException(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FANNOTATE:
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 void IncludeComponent(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope) throws ParseException { ElementAnnotation e; AnnotationsImpl a; a = AnnotationsImpl(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case IDENTIFIER: case ESCAPED_IDENTIFIER: Definition(section, scope, a); break; case 6: IncludeDiv(section, scope, a); break; default: jj_la1[43] = jj_gen; jj_consume_token(-1); throw new ParseException(); } label_17: while (true) { if (jj_2_6(2)) { ; } else { break label_17; } e = AnnotationElementNotKeyword(); section.topLevelAnnotation(e); } }
final public NameClass NsNameExceptClass(int context, AnnotationsImpl a, Ref<AnnotationsImpl> ra) throws ParseException { LocatedString ns; NameClass nc; ns = NsName(); checkNsName(context, ns); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 30: nc = ExceptNameClass(context | IN_NS_NAME); nc = sb.makeNsName(ns.getString(), nc, ns.getLocation(), a); nc = AnnotateAfter(nc); break; default: jj_la1[35] = jj_gen; nc = sb.makeNsName(ns.getString(), ns.getLocation(), a); nc = AnnotateAfter(nc); nc = NameClassAlternatives(context, nc, ra); } {if (true) return nc;} throw new Error("Missing return statement in function"); }
label_15: while (true) { if (jj_2_5(2)) { e = AnnotationElementNotKeyword(); if (a == null) a = sb.makeAnnotations(null, getContext()); a.addElement(e); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: case 5: break label_16; IncludeComponent(section, scope);
label_12: while (true) { if (jj_2_3(2)) { e = AnnotationElementNotKeyword(); if (a == null) a = sb.makeAnnotations(null, getContext()); a.addElement(e); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: case 5: break label_13; GrammarComponent(section, scope);
final public NameClass NameClassAlternatives(int context, NameClass nc, Ref<AnnotationsImpl> ra) throws ParseException { Token t; List<NameClass> nameClasses; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: nameClasses = new ArrayList<NameClass>(); label_11: while (true) { t = jj_consume_token(20); nc = BasicNameClass(context); nc = AnnotateAfter(nc); nameClasses.add(nc); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: ra.clear(); nc = sb.makeNameClassChoice(nameClasses, makeLocation(t), a); break; default:
final public NameClass BasicNameClass(int context) throws ParseException { AnnotationsImpl a; NameClass nc; a = AnnotationsImpl(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case 6: case ESCAPED_IDENTIFIER: case PREFIXED_NAME: nc = PrimaryNameClass(context, a); break; case 25: case PREFIX_STAR: nc = OpenNameClass(context, a); break; default: jj_la1[32] = jj_gen; jj_consume_token(-1); throw new ParseException();
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"); }
final public NameClass AnnotateAfter(NameClass nc) throws ParseException { ElementAnnotation e; label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FANNOTATE: ; break; default: jj_la1[29] = jj_gen; break label_10; } jj_consume_token(FANNOTATE); e = AnnotationElement(false); nc = sb.annotateAfterNameClass(nc, e); } {if (true) return nc;} throw new Error("Missing return statement in function"); }