Java Code Examples for com.sun.xml.internal.rngom.ast.builder.GrammarSection#Combine
The following examples show how to use
com.sun.xml.internal.rngom.ast.builder.GrammarSection#Combine .
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-jdk9 with GNU General Public License v2.0 | 6 votes |
final public GrammarSection.Combine AssignOp() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 2: jj_consume_token(2); {if (true) return null;} break; case 4: jj_consume_token(4); {if (true) return GrammarSection.COMBINE_CHOICE;} break; case 3: jj_consume_token(3); {if (true) return GrammarSection.COMBINE_INTERLEAVE;} break; default: jj_la1[40] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
Example 2
Source File: CompactSyntax.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
final public GrammarSection.Combine AssignOp() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 2: jj_consume_token(2); {if (true) return null;} break; case 4: jj_consume_token(4); {if (true) return GrammarSection.COMBINE_CHOICE;} break; case 3: jj_consume_token(3); {if (true) return GrammarSection.COMBINE_INTERLEAVE;} break; default: jj_la1[40] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
Example 3
Source File: CompactSyntax.java From hottub with GNU General Public License v2.0 | 6 votes |
final public GrammarSection.Combine AssignOp() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 2: jj_consume_token(2); {if (true) return null;} break; case 4: jj_consume_token(4); {if (true) return GrammarSection.COMBINE_CHOICE;} break; case 3: jj_consume_token(3); {if (true) return GrammarSection.COMBINE_INTERLEAVE;} break; default: jj_la1[40] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
Example 4
Source File: CompactSyntax.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
final public void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException { Token t; GrammarSection.Combine combine; ParsedPattern p; t = jj_consume_token(5); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(GrammarSection.START, combine, p, makeLocation(t), a); }
Example 5
Source File: CompactSyntax.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
final public void Define(GrammarSection section, Scope scope, Annotations a) throws ParseException { LocatedString name; GrammarSection.Combine combine; ParsedPattern p; name = Identifier(); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(name.getString(), combine, p, name.getLocation(), a); }
Example 6
Source File: CompactSyntax.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
final public void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException { Token t; GrammarSection.Combine combine; ParsedPattern p; t = jj_consume_token(5); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(GrammarSection.START, combine, p, makeLocation(t), a); }
Example 7
Source File: CompactSyntax.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
final public void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException { Token t; GrammarSection.Combine combine; ParsedPattern p; t = jj_consume_token(5); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(GrammarSection.START, combine, p, makeLocation(t), a); }
Example 8
Source File: CompactSyntax.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
final public void Define(GrammarSection section, Scope scope, Annotations a) throws ParseException { LocatedString name; GrammarSection.Combine combine; ParsedPattern p; name = Identifier(); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(name.getString(), combine, p, name.getLocation(), a); }
Example 9
Source File: CompactSyntax.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
final public void Start(GrammarSection section, Scope scope, Annotations a) throws ParseException { Token t; GrammarSection.Combine combine; ParsedPattern p; t = jj_consume_token(5); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(GrammarSection.START, combine, p, makeLocation(t), a); }
Example 10
Source File: CompactSyntax.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
final public void Define(GrammarSection section, Scope scope, Annotations a) throws ParseException { LocatedString name; GrammarSection.Combine combine; ParsedPattern p; name = Identifier(); combine = AssignOp(); p = Expr(false, scope, null, null); section.define(name.getString(), combine, p, name.getLocation(), a); }
Example 11
Source File: SchemaBuilderImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { RefPattern rp = grammar.lookup(name); overrides = new Override(rp, overrides); grammar.define(rp, combine, pattern, loc); }
Example 12
Source File: SchemaBuilderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { define(lookup(name), combine, pattern, loc); }
Example 13
Source File: SchemaBuilderImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void define(RefPattern rp, GrammarSection.Combine combine, ParsedPattern pattern, Location loc) throws BuildException { switch (rp.getReplacementStatus()) { case RefPattern.REPLACEMENT_KEEP: if (combine == null) { if (rp.isCombineImplicit()) { if (rp.getName() == null) { sb.error("duplicate_start", (Locator) loc); } else { sb.error("duplicate_define", rp.getName(), (Locator) loc); } } else { rp.setCombineImplicit(); } } else { byte combineType = (combine == COMBINE_CHOICE ? RefPattern.COMBINE_CHOICE : RefPattern.COMBINE_INTERLEAVE); if (rp.getCombineType() != RefPattern.COMBINE_NONE && rp.getCombineType() != combineType) { if (rp.getName() == null) { sb.error("conflict_combine_start", (Locator) loc); } else { sb.error("conflict_combine_define", rp.getName(), (Locator) loc); } } rp.setCombineType(combineType); } Pattern p = (Pattern) pattern; if (rp.getPattern() == null) { rp.setPattern(p); } else if (rp.getCombineType() == RefPattern.COMBINE_INTERLEAVE) { rp.setPattern(sb.pb.makeInterleave(rp.getPattern(), p)); } else { rp.setPattern(sb.pb.makeChoice(rp.getPattern(), p)); } break; case RefPattern.REPLACEMENT_REQUIRE: rp.setReplacementStatus(RefPattern.REPLACEMENT_IGNORE); break; case RefPattern.REPLACEMENT_IGNORE: break; } }
Example 14
Source File: SchemaBuilderImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { RefPattern rp = grammar.lookup(name); overrides = new Override(rp, overrides); grammar.define(rp, combine, pattern, loc); }
Example 15
Source File: SchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void define(RefPattern rp, GrammarSection.Combine combine, ParsedPattern pattern, Location loc) throws BuildException { switch (rp.getReplacementStatus()) { case RefPattern.REPLACEMENT_KEEP: if (combine == null) { if (rp.isCombineImplicit()) { if (rp.getName() == null) { sb.error("duplicate_start", (Locator) loc); } else { sb.error("duplicate_define", rp.getName(), (Locator) loc); } } else { rp.setCombineImplicit(); } } else { byte combineType = (combine == COMBINE_CHOICE ? RefPattern.COMBINE_CHOICE : RefPattern.COMBINE_INTERLEAVE); if (rp.getCombineType() != RefPattern.COMBINE_NONE && rp.getCombineType() != combineType) { if (rp.getName() == null) { sb.error("conflict_combine_start", (Locator) loc); } else { sb.error("conflict_combine_define", rp.getName(), (Locator) loc); } } rp.setCombineType(combineType); } Pattern p = (Pattern) pattern; if (rp.getPattern() == null) { rp.setPattern(p); } else if (rp.getCombineType() == RefPattern.COMBINE_INTERLEAVE) { rp.setPattern(sb.pb.makeInterleave(rp.getPattern(), p)); } else { rp.setPattern(sb.pb.makeChoice(rp.getPattern(), p)); } break; case RefPattern.REPLACEMENT_REQUIRE: rp.setReplacementStatus(RefPattern.REPLACEMENT_IGNORE); break; case RefPattern.REPLACEMENT_IGNORE: break; } }
Example 16
Source File: SchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { define(lookup(name), combine, pattern, loc); }
Example 17
Source File: SchemaBuilderImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
private void define(RefPattern rp, GrammarSection.Combine combine, ParsedPattern pattern, Location loc) throws BuildException { switch (rp.getReplacementStatus()) { case RefPattern.REPLACEMENT_KEEP: if (combine == null) { if (rp.isCombineImplicit()) { if (rp.getName() == null) { sb.error("duplicate_start", (Locator) loc); } else { sb.error("duplicate_define", rp.getName(), (Locator) loc); } } else { rp.setCombineImplicit(); } } else { byte combineType = (combine == COMBINE_CHOICE ? RefPattern.COMBINE_CHOICE : RefPattern.COMBINE_INTERLEAVE); if (rp.getCombineType() != RefPattern.COMBINE_NONE && rp.getCombineType() != combineType) { if (rp.getName() == null) { sb.error("conflict_combine_start", (Locator) loc); } else { sb.error("conflict_combine_define", rp.getName(), (Locator) loc); } } rp.setCombineType(combineType); } Pattern p = (Pattern) pattern; if (rp.getPattern() == null) { rp.setPattern(p); } else if (rp.getCombineType() == RefPattern.COMBINE_INTERLEAVE) { rp.setPattern(sb.pb.makeInterleave(rp.getPattern(), p)); } else { rp.setPattern(sb.pb.makeChoice(rp.getPattern(), p)); } break; case RefPattern.REPLACEMENT_REQUIRE: rp.setReplacementStatus(RefPattern.REPLACEMENT_IGNORE); break; case RefPattern.REPLACEMENT_IGNORE: break; } }
Example 18
Source File: SchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { RefPattern rp = grammar.lookup(name); overrides = new Override(rp, overrides); grammar.define(rp, combine, pattern, loc); }
Example 19
Source File: SchemaBuilderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void define(String name, GrammarSection.Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { RefPattern rp = grammar.lookup(name); overrides = new Override(rp, overrides); grammar.define(rp, combine, pattern, loc); }
Example 20
Source File: SchemaBuilderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void define(RefPattern rp, GrammarSection.Combine combine, ParsedPattern pattern, Location loc) throws BuildException { switch (rp.getReplacementStatus()) { case RefPattern.REPLACEMENT_KEEP: if (combine == null) { if (rp.isCombineImplicit()) { if (rp.getName() == null) { sb.error("duplicate_start", (Locator) loc); } else { sb.error("duplicate_define", rp.getName(), (Locator) loc); } } else { rp.setCombineImplicit(); } } else { byte combineType = (combine == COMBINE_CHOICE ? RefPattern.COMBINE_CHOICE : RefPattern.COMBINE_INTERLEAVE); if (rp.getCombineType() != RefPattern.COMBINE_NONE && rp.getCombineType() != combineType) { if (rp.getName() == null) { sb.error("conflict_combine_start", (Locator) loc); } else { sb.error("conflict_combine_define", rp.getName(), (Locator) loc); } } rp.setCombineType(combineType); } Pattern p = (Pattern) pattern; if (rp.getPattern() == null) { rp.setPattern(p); } else if (rp.getCombineType() == RefPattern.COMBINE_INTERLEAVE) { rp.setPattern(sb.pb.makeInterleave(rp.getPattern(), p)); } else { rp.setPattern(sb.pb.makeChoice(rp.getPattern(), p)); } break; case RefPattern.REPLACEMENT_REQUIRE: rp.setReplacementStatus(RefPattern.REPLACEMENT_IGNORE); break; case RefPattern.REPLACEMENT_IGNORE: break; } }