当前位置: 首页>>代码示例>>Java>>正文


Java类com.sun.xml.internal.rngom.ast.builder.GrammarSection代码示例

以下是Javacom.sun.xml.internal.rngom.ast.builder.GrammarSection的代码示例。类GrammarSection属于com.sun.xml.internal.rngom.ast.builder包,如果您正苦于以下问题:Java GrammarSection类的具体用法?Java GrammarSection怎么用?Java GrammarSection使用的例子?那么恭喜您, 这里整理的类代码示例例程将为您提供帮助。

本文一共展示了GrammarSection的12个开源代码实例,这些例子默认根据受欢迎程度排序。您可以为喜欢的代码打CALL点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: AssignOp

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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");
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例2: Include

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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) { }
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例3: GrammarBody

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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");
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例4: GrammarComponent

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
  }
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例5: Definition

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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();
  }
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例6: Start

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例7: Define

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例8: IncludeBody

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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");
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例9: IncludeComponent

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
  }
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例10: Div

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例11: IncludeDiv

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:CompactSyntax.java


示例12: setOtherAttribute

import com.sun.xml.internal.rngom.ast.builder.GrammarSection; //导入依赖的package包/类
@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);
    }
}
 
开发者ID:SunburstApps,项目:OpenJSharp,完整代码来源:SchemaParser.java



注:本文示例均筛选自Github平台上各路大神开发的开源项目,代码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。