Java Code Examples for com.sun.xml.internal.rngom.ast.builder.ElementAnnotationBuilder#makeElementAnnotation()
The following examples show how to use
com.sun.xml.internal.rngom.ast.builder.ElementAnnotationBuilder#makeElementAnnotation() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompactSyntax.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 2
Source File: CompactSyntax.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 3
Source File: CompactSyntax.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 4
Source File: CompactSyntax.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentList comments = getComments(); Token t; ElementAnnotationBuilder 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 == this.inheritedNs) { 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"); }
Example 5
Source File: CompactSyntax.java From hottub with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation Documentation() throws ParseException { CommentList comments = getComments(); ElementAnnotationBuilder eab; Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: t = jj_consume_token(DOCUMENTATION); break; case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS, "documentation", getCompatibilityPrefix(), makeLocation(t), comments, getContext()); eab.addText(mungeComment(t.image), makeLocation(t), null); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION_CONTINUE: ; break; default: jj_la1[55] = jj_gen; break label_19; } t = jj_consume_token(DOCUMENTATION_CONTINUE); eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null); } {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
Example 6
Source File: CompactSyntax.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation Documentation() throws ParseException { CommentList comments = getComments(); ElementAnnotationBuilder eab; Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: t = jj_consume_token(DOCUMENTATION); break; case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS, "documentation", getCompatibilityPrefix(), makeLocation(t), comments, getContext()); eab.addText(mungeComment(t.image), makeLocation(t), null); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION_CONTINUE: ; break; default: jj_la1[55] = jj_gen; break label_19; } t = jj_consume_token(DOCUMENTATION_CONTINUE); eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null); } {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
Example 7
Source File: CompactSyntax.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 8
Source File: CompactSyntax.java From hottub with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 9
Source File: CompactSyntax.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation Documentation() throws ParseException { CommentList comments = getComments(); ElementAnnotationBuilder eab; Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: t = jj_consume_token(DOCUMENTATION); break; case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS, "documentation", getCompatibilityPrefix(), makeLocation(t), comments, getContext()); eab.addText(mungeComment(t.image), makeLocation(t), null); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION_CONTINUE: ; break; default: jj_la1[55] = jj_gen; break label_19; } t = jj_consume_token(DOCUMENTATION_CONTINUE); eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null); } {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
Example 10
Source File: CompactSyntax.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 11
Source File: CompactSyntax.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation Documentation() throws ParseException { CommentList comments = getComments(); ElementAnnotationBuilder eab; Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: t = jj_consume_token(DOCUMENTATION); break; case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS, "documentation", getCompatibilityPrefix(), makeLocation(t), comments, getContext()); eab.addText(mungeComment(t.image), makeLocation(t), null); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION_CONTINUE: ; break; default: jj_la1[55] = jj_gen; break label_19; } t = jj_consume_token(DOCUMENTATION_CONTINUE); eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null); } {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
Example 12
Source File: CompactSyntax.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentList comments = getComments(); Token t; ElementAnnotationBuilder 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 == this.inheritedNs) { 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"); }
Example 13
Source File: CompactSyntax.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation Documentation() throws ParseException { CommentList comments = getComments(); ElementAnnotationBuilder eab; Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION: t = jj_consume_token(DOCUMENTATION); break; case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT: t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS, "documentation", getCompatibilityPrefix(), makeLocation(t), comments, getContext()); eab.addText(mungeComment(t.image), makeLocation(t), null); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOCUMENTATION_CONTINUE: ; break; default: jj_la1[55] = jj_gen; break label_19; } t = jj_consume_token(DOCUMENTATION_CONTINUE); eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null); } {if (true) return eab.makeElementAnnotation();} throw new Error("Missing return statement in function"); }
Example 14
Source File: CompactSyntax.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 15
Source File: CompactSyntax.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 16
Source File: CompactSyntax.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentList comments = getComments(); Token t; ElementAnnotationBuilder 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 == this.inheritedNs) { 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"); }
Example 17
Source File: CompactSyntax.java From hottub with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 18
Source File: CompactSyntax.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 19
Source File: CompactSyntax.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException { CommentList comments = getComments(); LocatedString name; ElementAnnotationBuilder 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"); }
Example 20
Source File: CompactSyntax.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException { CommentList comments = getComments(); Token t; ElementAnnotationBuilder 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 == this.inheritedNs) { 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"); }