• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Annotations类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: makeExternalRef

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makeExternalRef(Parseable current, String uri, String ns, Scope scope,
        Location loc, Annotations anno)
        throws BuildException {
    for (OpenIncludes inc = openIncludes;
            inc != null;
            inc = inc.parent) {
        if (inc.uri.equals(uri)) {
            error("recursive_include", uri, (Locator) loc);
            return pb.makeError();
        }
    }
    try {
        return current.parseExternal(uri, new SchemaBuilderImpl(ns, uri, this), scope, ns);
    } catch (IllegalSchemaException e) {
        noteError();
        return pb.makeError();
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:SchemaBuilderImpl.java


示例2: endGrammar

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern endGrammar(Location loc, Annotations anno) throws BuildException {
    for (Enumeration e = defines.keys();
            e.hasMoreElements();) {
        String name = (String) e.nextElement();
        RefPattern rp = (RefPattern) defines.get(name);
        if (rp.getPattern() == null) {
            sb.error("reference_to_undefined", name, rp.getRefLocator());
            rp.setPattern(sb.pb.makeError());
        }
    }
    Pattern start = startRef.getPattern();
    if (start == null) {
        sb.error("missing_start_element", (Locator) loc);
        start = sb.pb.makeError();
    }
    return start;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:SchemaBuilderImpl.java


示例3: makeChoice

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makeChoice(List patterns,
    Location _loc, Annotations _anno) throws BuildException {

    List<ParsedPattern> lp = new ArrayList<ParsedPattern>();
    List<ParsedPattern> rp = new ArrayList<ParsedPattern>();
    for( int i=0; i<patterns.size(); i++ ) {
        lp.add( ((ParsedPatternHost)patterns.get(i)).lhs);
        rp.add( ((ParsedPatternHost)patterns.get(i)).rhs);
    }
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

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


示例4: OpenNameClass

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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


示例5: AnyNameExceptClass

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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


示例6: Include

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:25,代码来源:CompactSyntax.java


示例7: makeGroup

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makeGroup(List patterns,
    Location _loc, Annotations _anno) throws BuildException {

    List<ParsedPattern> lp = new ArrayList<ParsedPattern>();
    List<ParsedPattern> rp = new ArrayList<ParsedPattern>();
    for( int i=0; i<patterns.size(); i++ ) {
        lp.add( ((ParsedPatternHost)patterns.get(i)).lhs);
        rp.add( ((ParsedPatternHost)patterns.get(i)).rhs);
    }
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    return new ParsedPatternHost(
        lhs.makeGroup(lp, loc.lhs, anno.lhs),
        rhs.makeGroup(rp, loc.rhs, anno.rhs));
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:SchemaBuilderHost.java


示例8: makeText

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makeText(Location _loc, Annotations _anno) {
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    return new ParsedPatternHost(
        lhs.makeText(loc.lhs, anno.lhs),
        rhs.makeText(loc.rhs, anno.rhs));
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:SchemaBuilderHost.java


示例9: PrefixedNameClass

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:CompactSyntax.java


示例10: makeElement

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makeElement(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.makeElement(nc.lhs, p.lhs, loc.lhs, anno.lhs),
        rhs.makeElement(nc.rhs, p.rhs, loc.rhs, anno.rhs));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SchemaBuilderHost.java


示例11: Define

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:CompactSyntax.java


示例12: define

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
@Override
public void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException {
    // check for overridden pattern
    if(name==START) {
        if(startOverriden)
            return;
    } else {
        if(overridenPatterns.contains(name))
            return;
    }
    // otherwise define
    super.define(name, combine, pattern, loc, anno);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:IncludeImpl.java


示例13: expandName

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的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:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:SchemaParser.java


示例14: makePattern

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makePattern(ParsedPattern except, Location loc, Annotations anno) throws BuildException {
    p.except = (DPattern)except;
    if (anno!=null) {
        p.annotation = ((Annotation)anno).getResult();
    }
    return p;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:DataPatternBuilderImpl.java


示例15: addParam

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public void addParam(String name, String value, Context context, String ns, Location _loc, Annotations _anno) throws BuildException {
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    lhs.addParam( name, value, context, ns, loc.lhs, anno.lhs );
    rhs.addParam( name, value, context, ns, loc.rhs, anno.rhs );
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:DataPatternBuilderHost.java


示例16: makeChoice

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedNameClass makeChoice(List _nameClasses, Location _loc, Annotations _anno) {
    List<ParsedNameClass> lnc = new ArrayList<ParsedNameClass>();
    List<ParsedNameClass> rnc = new ArrayList<ParsedNameClass>();
    for( int i=0; i<_nameClasses.size(); i++ ) {
        lnc.add(((ParsedNameClassHost)_nameClasses.get(i)).lhs);
        rnc.add(((ParsedNameClassHost)_nameClasses.get(i)).rhs);
    }
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    return new ParsedNameClassHost(
        lhs.makeChoice( lnc, loc.lhs, anno.lhs ),
        rhs.makeChoice( rnc, loc.rhs, anno.rhs ) );
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:NameClassBuilderHost.java


示例17: makeZeroOrMore

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

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

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


示例18: GrammarExpr

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
final public ParsedPattern GrammarExpr(Scope scope, Annotations a) throws ParseException {
Token t;
Grammar g;
  t = jj_consume_token(10);
                g = sb.makeGrammar(scope);
  jj_consume_token(11);
  a = GrammarBody(g, g, a);
                               topLevelComments(g);
  jj_consume_token(12);
  {if (true) return g.endGrammar(makeLocation(t), a);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:CompactSyntax.java


示例19: makeNsName

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedNameClass makeNsName(String ns, Location _loc, Annotations _anno) {
    LocationHost loc = cast(_loc);
    AnnotationsHost anno = cast(_anno);

    return new ParsedNameClassHost(
        lhs.makeNsName( ns, loc.lhs, anno.lhs ),
        rhs.makeNsName( ns, loc.rhs, anno.rhs ) );
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:NameClassBuilderHost.java


示例20: makePattern

import com.sun.xml.internal.rngom.ast.builder.Annotations; //导入依赖的package包/类
public ParsedPattern makePattern(Location loc, Annotations anno)
        throws BuildException {
    try {
        return pb.makeData(dtb.createDatatype());
    } catch (DatatypeException e) {
        String detail = e.getMessage();
        if (detail != null) {
            error("invalid_params_detail", detail, (Locator) loc);
        } else {
            error("invalid_params", (Locator) loc);
        }
        return pb.makeError();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:SchemaBuilderImpl.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CommandDeOp类代码示例发布时间:2022-05-23
下一篇:
Java SqlRowSetMetaData类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap