本文整理汇总了Java中com.sun.xml.internal.rngom.ast.builder.Scope类的典型用法代码示例。如果您正苦于以下问题:Java Scope类的具体用法?Java Scope怎么用?Java Scope使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Scope类属于com.sun.xml.internal.rngom.ast.builder包,在下文中一共展示了Scope类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: makeExternalRef
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:SchemaBuilderImpl.java
示例2: Include
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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,代码行数:25,代码来源:CompactSyntax.java
示例3: makeExternalRef
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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:alexkasko,项目名称:openjdk-icedtea7,代码行数:20,代码来源:SchemaBuilderImpl.java
示例4: Input
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的package包/类
final public ParsedPattern Input(Scope scope) throws ParseException {
ParsedPattern p;
Preamble();
if (jj_2_1(2147483647)) {
p = TopLevelGrammar(scope);
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 1:
case 10:
case 17:
case 18:
case 19:
case 26:
case 27:
case 28:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case DOCUMENTATION:
case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
case IDENTIFIER:
case ESCAPED_IDENTIFIER:
case PREFIXED_NAME:
case LITERAL:
p = Expr(true, scope, null, null);
p = afterComments(p);
jj_consume_token(0);
break;
default:
jj_la1[0] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
{if (true) return p;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:41,代码来源:CompactSyntax.java
示例5: TopLevelGrammar
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的package包/类
final public ParsedPattern TopLevelGrammar(Scope scope) throws ParseException {
Annotations a = getTopLevelCommentsAsAnnotations();
Grammar g;
ParsedPattern p;
g = sb.makeGrammar(scope);
a = GrammarBody(g, g, a);
p = afterComments(g.endGrammar(sb.makeLocation(sourceUri, 1, 1), a));
jj_consume_token(0);
{if (true) return p;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例6: AnnotatedPrimaryExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例7: ElementExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例8: AttributeExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例9: ListExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的package包/类
final public ParsedPattern ListExpr(Scope scope, Annotations a) throws ParseException {
Token t;
ParsedPattern p;
t = jj_consume_token(31);
jj_consume_token(11);
p = Expr(false, scope, null, null);
p = afterComments(p);
jj_consume_token(12);
{if (true) return sb.makeList(p, makeLocation(t), a);}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例10: MixedExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的package包/类
final public ParsedPattern MixedExpr(Scope scope, Annotations a) throws ParseException {
Token t;
ParsedPattern p;
t = jj_consume_token(32);
jj_consume_token(11);
p = Expr(false, scope, null, null);
p = afterComments(p);
jj_consume_token(12);
{if (true) return sb.makeMixed(p, makeLocation(t), a);}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例11: GrammarExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:CompactSyntax.java
示例12: ParenExpr
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的package包/类
final public ParsedPattern ParenExpr(boolean topLevel, Scope scope, Annotations a) throws ParseException {
Token t;
ParsedPattern p;
t = jj_consume_token(28);
p = Expr(topLevel, scope, t, a);
p = afterComments(p);
jj_consume_token(29);
{if (true) return p;}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:CompactSyntax.java
示例13: GrammarBody
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例14: GrammarComponent
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例15: Definition
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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,代码行数:16,代码来源:CompactSyntax.java
示例16: Start
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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,代码行数:10,代码来源:CompactSyntax.java
示例17: Define
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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,代码行数:10,代码来源:CompactSyntax.java
示例18: IncludeBody
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例19: IncludeComponent
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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
示例20: Div
import com.sun.xml.internal.rngom.ast.builder.Scope; //导入依赖的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,代码行数:11,代码来源:CompactSyntax.java
注:本文中的com.sun.xml.internal.rngom.ast.builder.Scope类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论