本文整理汇总了Java中com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation类的典型用法代码示例。如果您正苦于以下问题:Java ParsedElementAnnotation类的具体用法?Java ParsedElementAnnotation怎么用?Java ParsedElementAnnotation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParsedElementAnnotation类属于com.sun.xml.internal.rngom.ast.om包,在下文中一共展示了ParsedElementAnnotation类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: AnnotateAfter
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的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: AnnotationElementNotKeyword
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation AnnotationElementNotKeyword() throws ParseException {
ParsedElementAnnotation a;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PREFIXED_NAME:
a = PrefixedAnnotationElement(false);
break;
case IDENTIFIER:
case ESCAPED_IDENTIFIER:
a = IdentifierAnnotationElement();
break;
default:
jj_la1[62] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return a;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:CompactSyntax.java
示例3: topLevelAnnotation
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
public void topLevelAnnotation(ParsedElementAnnotation ea) throws BuildException {
// Harshit : Fixed issue in handling of annotations
if (additionalElementAnnotations==null) {
additionalElementAnnotations = new ArrayList<Element>();
}
additionalElementAnnotations.add(((ElementWrapper)ea).element);
if (grammar.annotation==null) {
grammar.annotation = new DAnnotation();
}
grammar.annotation.contents.addAll(additionalElementAnnotations);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:GrammarBuilderImpl.java
示例4: AnnotatedPrimaryExpr
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedPattern AnnotatedPrimaryExpr(boolean topLevel, Scope scope, Token[] except) throws ParseException {
Annotations a;
ParsedPattern p;
ParsedElementAnnotation e;
Token t;
a = Annotations();
p = PrimaryExpr(topLevel, scope, a, except);
label_5:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case FANNOTATE:
;
break;
default:
jj_la1[18] = jj_gen;
break label_5;
}
t = jj_consume_token(FANNOTATE);
e = AnnotationElement(false);
if (topLevel)
error("top_level_follow_annotation", t);
else
p = sb.annotateAfter(p, e);
}
{if (true) return p;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:CompactSyntax.java
示例5: GrammarBody
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的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,代码行数:35,代码来源:CompactSyntax.java
示例6: GrammarComponent
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的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,代码行数:33,代码来源:CompactSyntax.java
示例7: IncludeBody
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的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,代码行数:34,代码来源:CompactSyntax.java
示例8: IncludeComponent
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的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,代码行数:30,代码来源:CompactSyntax.java
示例9: Documentation
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOCUMENTATION:
t = jj_consume_token(DOCUMENTATION);
break;
case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
break;
default:
jj_la1[54] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
"documentation",
getCompatibilityPrefix(),
makeLocation(t),
comments,
getContext());
eab.addText(mungeComment(t.image), makeLocation(t), null);
label_19:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOCUMENTATION_CONTINUE:
;
break;
default:
jj_la1[55] = jj_gen;
break label_19;
}
t = jj_consume_token(DOCUMENTATION_CONTINUE);
eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
}
{if (true) return eab.makeElementAnnotation();}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:40,代码来源:CompactSyntax.java
示例10: AnnotationElement
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation AnnotationElement(boolean nested) throws ParseException {
ParsedElementAnnotation a;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PREFIXED_NAME:
a = PrefixedAnnotationElement(nested);
break;
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:
a = UnprefixedAnnotationElement();
break;
default:
jj_la1[61] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return a;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:38,代码来源:CompactSyntax.java
示例11: PrefixedAnnotationElement
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
t = jj_consume_token(PREFIXED_NAME);
String qn = t.image;
int colon = qn.indexOf(':');
String prefix = qn.substring(0, colon);
String ns = lookupPrefix(prefix, t);
if (ns == this.inheritedNs) {
error("inherited_annotation_namespace", t);
ns = "";
}
else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
error("relax_ng_namespace", t);
ns = "";
}
else {
if (ns.length() == 0)
prefix = null;
}
eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
makeLocation(t), comments, getContext());
AnnotationElementContent(eab);
{if (true) return eab.makeElementAnnotation();}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:CompactSyntax.java
示例12: UnprefixedAnnotationElement
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
name = UnprefixedName();
eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
name.getLocation(), comments, getContext());
AnnotationElementContent(eab);
{if (true) return eab.makeElementAnnotation();}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例13: IdentifierAnnotationElement
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
name = Identifier();
eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
name.getLocation(), comments, getContext());
AnnotationElementContent(eab);
{if (true) return eab.makeElementAnnotation();}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例14: endForeignChild
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
@Override
void endForeignChild(ParsedElementAnnotation ea) {
// Harshit : Annotation handling should always be taken care of, irrespective of childPatterns being null or not.
super.endForeignChild(ea);
if (childPatterns != null) {
int idx = childPatterns.size() - 1;
childPatterns.set(idx, schemaBuilder.annotateAfter(childPatterns.get(idx), ea));
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:SchemaParser.java
示例15: annotateAfter
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
public ParsedPattern annotateAfter(ParsedPattern _p,
ParsedElementAnnotation _e) throws BuildException {
ParsedPatternHost p = (ParsedPatternHost) _p;
ParsedElementAnnotationHost e = (ParsedElementAnnotationHost) _e;
return new ParsedPatternHost(
lhs.annotateAfter(p.lhs, e.lhs),
rhs.annotateAfter(p.rhs, e.rhs));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:SchemaBuilderHost.java
示例16: annotateAfter
import com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation; //导入依赖的package包/类
public ParsedNameClass annotateAfter(ParsedNameClass _nc, ParsedElementAnnotation _e) throws BuildException {
ParsedNameClassHost nc = (ParsedNameClassHost) _nc;
ParsedElementAnnotationHost e = (ParsedElementAnnotationHost) _e;
return new ParsedNameClassHost(
lhs.annotateAfter(nc.lhs, e.lhs),
rhs.annotateAfter(nc.rhs, e.rhs));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:NameClassBuilderHost.java
注:本文中的com.sun.xml.internal.rngom.ast.om.ParsedElementAnnotation类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论