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


Java ParsedNameClass类代码示例

本文整理汇总了Java中com.sun.xml.internal.rngom.ast.om.ParsedNameClass的典型用法代码示例。如果您正苦于以下问题:Java ParsedNameClass类的具体用法?Java ParsedNameClass怎么用?Java ParsedNameClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ParsedNameClass类属于com.sun.xml.internal.rngom.ast.om包,在下文中一共展示了ParsedNameClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AnnotateAfter

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass AnnotateAfter(ParsedNameClass nc) throws ParseException {
ParsedElementAnnotation 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 = ncb.annotateAfter(nc, e);
  }
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:CompactSyntax.java

示例2: OpenNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass OpenNameClass(int context, Annotations a) throws ParseException {
Token t;
LocatedString ns;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case PREFIX_STAR:
    ns = NsName();
                checkNsName(context, ns); {if (true) return ncb.makeNsName(ns.getString(), ns.getLocation(), a);}
    break;
  case 25:
    t = jj_consume_token(25);
            checkAnyName(context, t); {if (true) return ncb.makeAnyName(makeLocation(t), a);}
    break;
  default:
    jj_la1[34] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:CompactSyntax.java

示例3: NsNameExceptClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass NsNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException {
LocatedString ns;
ParsedNameClass nc;
  ns = NsName();
  checkNsName(context, ns);
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 30:
    nc = ExceptNameClass(context | IN_NS_NAME);
   nc = ncb.makeNsName(ns.getString(), nc, ns.getLocation(), a);
    nc = AnnotateAfter(nc);
    break;
  default:
    jj_la1[35] = jj_gen;
    nc = ncb.makeNsName(ns.getString(), ns.getLocation(), a);
    nc = AnnotateAfter(nc);
    nc = NameClassAlternatives(context, nc, pa);
  }
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:CompactSyntax.java

示例4: AnyNameExceptClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass AnyNameExceptClass(int context, Annotations a, Annotations[] pa) throws ParseException {
Token t;
ParsedNameClass 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 = ncb.makeAnyName(nc, makeLocation(t), a);
    nc = AnnotateAfter(nc);
    break;
  default:
    jj_la1[36] = jj_gen;
    nc = ncb.makeAnyName(makeLocation(t), a);
    nc = AnnotateAfter(nc);
    nc = NameClassAlternatives(context, nc, pa);
  }
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:CompactSyntax.java

示例5: ElementExpr

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedPattern ElementExpr(Scope scope, Annotations a) throws ParseException {
Token t;
ParsedNameClass nc;
ParsedPattern p;
  t = jj_consume_token(26);
  nc = NameClass(IN_ELEMENT, null);
  jj_consume_token(11);
  p = Expr(false, scope, null, null);
  p = afterComments(p);
  jj_consume_token(12);
  {if (true) return sb.makeElement(nc, p, makeLocation(t), a);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:CompactSyntax.java

示例6: AttributeExpr

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedPattern AttributeExpr(Scope scope, Annotations a) throws ParseException {
Token t;
ParsedNameClass nc;
ParsedPattern p;
  t = jj_consume_token(27);
  nc = NameClass(IN_ATTRIBUTE, null);
  jj_consume_token(11);
  p = Expr(false, scope, null, null);
  p = afterComments(p);
  jj_consume_token(12);
  {if (true) return sb.makeAttribute(nc, p, makeLocation(t), a);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:CompactSyntax.java

示例7: PrimaryNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass PrimaryNameClass(int context, Annotations a) throws ParseException {
ParsedNameClass nc;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 5:
  case 6:
  case 7:
  case 10:
  case 13:
  case 14:
  case 15:
  case 16:
  case 17:
  case 18:
  case 19:
  case 26:
  case 27:
  case 31:
  case 32:
  case 33:
  case 34:
  case 35:
  case 36:
  case IDENTIFIER:
  case ESCAPED_IDENTIFIER:
    nc = UnprefixedNameClass(context, a);
    break;
  case PREFIXED_NAME:
    nc = PrefixedNameClass(a);
    break;
  case 28:
    nc = ParenNameClass(context, a);
    break;
  default:
    jj_la1[33] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:41,代码来源:CompactSyntax.java

示例8: UnprefixedNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass UnprefixedNameClass(int context, Annotations a) throws ParseException {
LocatedString name;
  name = UnprefixedName();
  String ns;
  if ((context & (IN_ATTRIBUTE|IN_ELEMENT)) == IN_ATTRIBUTE)
    ns = "";
  else
    ns = defaultNamespace;
  {if (true) return ncb.makeName(ns, name.getString(), null, name.getLocation(), a);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java

示例9: PrefixedNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass PrefixedNameClass(Annotations a) throws ParseException {
Token t;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  {if (true) return ncb.makeName(lookupPrefix(prefix, t), qn.substring(colon + 1), prefix, makeLocation(t), a);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:CompactSyntax.java

示例10: ParenNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass ParenNameClass(int context, Annotations a) throws ParseException {
Token t;
ParsedNameClass nc;
Annotations[] pa = new Annotations[]{ a };
  t = jj_consume_token(28);
  nc = NameClass(context, pa);
                                      nc = afterComments(nc);
  jj_consume_token(29);
  if (pa[0] != null)
    nc = ncb.makeChoice(Collections.singletonList(nc), makeLocation(t), pa[0]);
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:CompactSyntax.java

示例11: ExceptNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
final public ParsedNameClass ExceptNameClass(int context) throws ParseException {
ParsedNameClass nc;
  jj_consume_token(30);
  nc = BasicNameClass(context);
  {if (true) return nc;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CompactSyntax.java

示例12: makeNameClass

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
ParsedNameClass makeNameClass() {
    if (except == null) {
        return makeNameClassNoExcept();
    } else {
        return makeNameClassExcept(except);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaParser.java

示例13: endChild

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
@Override
void endChild(ParsedNameClass nc) {
    if (nameClasses == null) {
        nameClasses = new ParsedNameClass[INIT_CHILD_ALLOC];
    } else if (nNameClasses >= nameClasses.length) {
        ParsedNameClass[] newNameClasses = new ParsedNameClass[nameClasses.length * 2];
        System.arraycopy(nameClasses, 0, newNameClasses, 0, nameClasses.length);
        nameClasses = newNameClasses;
    }
    nameClasses[nNameClasses++] = nc;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:SchemaParser.java

示例14: expandName

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
private ParsedNameClass expandName(String name, String ns, Annotations anno) throws SAXException {
    int ic = name.indexOf(':');
    if (ic == -1) {
        return nameClassBuilder.makeName(ns, checkNCName(name), null, null, anno);
    }
    String prefix = checkNCName(name.substring(0, ic));
    String localName = checkNCName(name.substring(ic + 1));
    for (PrefixMapping tem = context.prefixMapping; tem != null; tem = tem.next) {
        if (tem.prefix.equals(prefix)) {
            return nameClassBuilder.makeName(tem.uri, localName, prefix, null, anno);
        }
    }
    error("undefined_prefix", prefix);
    return nameClassBuilder.makeName("", localName, null, null, anno);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:SchemaParser.java

示例15: makeAttribute

import com.sun.xml.internal.rngom.ast.om.ParsedNameClass; //导入依赖的package包/类
public ParsedPattern makeAttribute(ParsedNameClass _nc, ParsedPattern _p,
    Location _loc, Annotations _anno) throws BuildException {

    ParsedNameClassHost nc = (ParsedNameClassHost) _nc;
    ParsedPatternHost p = (ParsedPatternHost) _p;
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    return new ParsedPatternHost(
        lhs.makeAttribute(nc.lhs, p.lhs, loc.lhs, anno.lhs),
        rhs.makeAttribute(nc.rhs, p.rhs, loc.rhs, anno.rhs));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SchemaBuilderHost.java


注:本文中的com.sun.xml.internal.rngom.ast.om.ParsedNameClass类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。