com.sun.xml.internal.rngom.ast.builder.GrammarSection Java Examples

The following examples show how to use com.sun.xml.internal.rngom.ast.builder.GrammarSection. 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 TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
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-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
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 openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
final public void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
String href;
String ns;
Include include = section.makeInclude();
  t = jj_consume_token(7);
  href = Literal();
  ns = Inherit();
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 11:
    jj_consume_token(11);
    a = IncludeBody(include, scope, a);
                                          topLevelComments(include);
    jj_consume_token(12);
    break;
  default:
    jj_la1[41] = jj_gen;
    ;
  }
  try {
    include.endInclude(parseable, resolve(href), ns, makeLocation(t), a);
  }
  catch (IllegalSchemaException e) { }
}
 
Example #4
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
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 #5
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
final public void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
String href;
String ns;
Include include = section.makeInclude();
  t = jj_consume_token(7);
  href = Literal();
  ns = Inherit();
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 11:
    jj_consume_token(11);
    a = IncludeBody(include, scope, a);
                                          topLevelComments(include);
    jj_consume_token(12);
    break;
  default:
    jj_la1[41] = jj_gen;
    ;
  }
  try {
    include.endInclude(parseable, resolve(href), ns, makeLocation(t), a);
  }
  catch (IllegalSchemaException e) { }
}
 
Example #6
Source File: CompactSyntax.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
final public void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
String href;
String ns;
Include include = section.makeInclude();
  t = jj_consume_token(7);
  href = Literal();
  ns = Inherit();
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 11:
    jj_consume_token(11);
    a = IncludeBody(include, scope, a);
                                          topLevelComments(include);
    jj_consume_token(12);
    break;
  default:
    jj_la1[41] = jj_gen;
    ;
  }
  try {
    include.endInclude(parseable, resolve(href), ns, makeLocation(t), a);
  }
  catch (IllegalSchemaException e) { }
}
 
Example #7
Source File: CompactSyntax.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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 #8
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
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 #9
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public Annotations GrammarBody(GrammarSection section, Scope scope, Annotations a) throws ParseException {
ParsedElementAnnotation e;
  label_12:
  while (true) {
    if (jj_2_3(2)) {
      ;
    } else {
      break label_12;
    }
    e = AnnotationElementNotKeyword();
   if (a == null) a = sb.makeAnnotations(null, getContext()); a.addElement(e);
  }
  label_13:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[37] = jj_gen;
      break label_13;
    }
    GrammarComponent(section, scope);
  }
  {if (true) return a;}
  throw new Error("Missing return statement in function");
}
 
Example #10
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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 #11
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public void GrammarComponent(GrammarSection section, Scope scope) throws ParseException {
ParsedElementAnnotation e;
Annotations a;
  a = Annotations();
  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();
  }
  label_14:
  while (true) {
    if (jj_2_4(2)) {
      ;
    } else {
      break label_14;
    }
    e = AnnotationElementNotKeyword();
                                                  section.topLevelAnnotation(e);
  }
}
 
Example #12
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public void GrammarComponent(GrammarSection section, Scope scope) throws ParseException {
ParsedElementAnnotation e;
Annotations a;
  a = Annotations();
  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();
  }
  label_14:
  while (true) {
    if (jj_2_4(2)) {
      ;
    } else {
      break label_14;
    }
    e = AnnotationElementNotKeyword();
                                                  section.topLevelAnnotation(e);
  }
}
 
Example #13
Source File: CompactSyntax.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
final public void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException {
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case IDENTIFIER:
  case ESCAPED_IDENTIFIER:
    Define(section, scope, a);
    break;
  case 5:
    Start(section, scope, a);
    break;
  default:
    jj_la1[39] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
}
 
Example #14
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public void GrammarComponent(GrammarSection section, Scope scope) throws ParseException {
ParsedElementAnnotation e;
Annotations a;
  a = Annotations();
  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();
  }
  label_14:
  while (true) {
    if (jj_2_4(2)) {
      ;
    } else {
      break label_14;
    }
    e = AnnotationElementNotKeyword();
                                                  section.topLevelAnnotation(e);
  }
}
 
Example #15
Source File: CompactSyntax.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = IncludeBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}
 
Example #16
Source File: CompactSyntax.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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 #17
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = IncludeBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}
 
Example #18
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public void IncludeDiv(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = IncludeBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}
 
Example #19
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException {
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case IDENTIFIER:
  case ESCAPED_IDENTIFIER:
    Define(section, scope, a);
    break;
  case 5:
    Start(section, scope, a);
    break;
  default:
    jj_la1[39] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
}
 
Example #20
Source File: SchemaParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
void setOtherAttribute(String name, String value) throws SAXException {
    if (name.equals("combine")) {
        value = value.trim();
        if (value.equals("choice")) {
            combine = GrammarSection.COMBINE_CHOICE;
        } else if (value.equals("interleave")) {
            combine = GrammarSection.COMBINE_INTERLEAVE;
        } else {
            error("combine_attribute_bad_value", value);
        }
    } else {
        super.setOtherAttribute(name, value);
    }
}
 
Example #21
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException {
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case IDENTIFIER:
  case ESCAPED_IDENTIFIER:
    Define(section, scope, a);
    break;
  case 5:
    Start(section, scope, a);
    break;
  default:
    jj_la1[39] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
}
 
Example #22
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Div(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = GrammarBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}
 
Example #23
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public void Div(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = GrammarBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}
 
Example #24
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public void Definition(GrammarSection section, Scope scope, Annotations a) throws ParseException {
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case IDENTIFIER:
  case ESCAPED_IDENTIFIER:
    Define(section, scope, a);
    break;
  case 5:
    Start(section, scope, a);
    break;
  default:
    jj_la1[39] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
}
 
Example #25
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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 #26
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
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 #27
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void IncludeComponent(GrammarSection section, Scope scope) throws ParseException {
ParsedElementAnnotation e;
Annotations a;
  a = Annotations();
  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);
  }
}
 
Example #28
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public Annotations IncludeBody(GrammarSection section, Scope scope, Annotations a) throws ParseException {
ParsedElementAnnotation e;
  label_15:
  while (true) {
    if (jj_2_5(2)) {
      ;
    } else {
      break label_15;
    }
    e = AnnotationElementNotKeyword();
   if (a == null) a = sb.makeAnnotations(null, getContext()); a.addElement(e);
  }
  label_16:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[42] = jj_gen;
      break label_16;
    }
    IncludeComponent(section, scope);
  }
  {if (true) return a;}
  throw new Error("Missing return statement in function");
}
 
Example #29
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public void IncludeComponent(GrammarSection section, Scope scope) throws ParseException {
ParsedElementAnnotation e;
Annotations a;
  a = Annotations();
  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);
  }
}
 
Example #30
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public void Div(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
Div div = section.makeDiv();
  t = jj_consume_token(6);
  jj_consume_token(11);
  a = GrammarBody(div, scope, a);
                                               topLevelComments(div);
  jj_consume_token(12);
  div.endDiv(makeLocation(t), a);
}