本文整理汇总了Java中com.sun.xml.internal.rngom.ast.builder.Include类的典型用法代码示例。如果您正苦于以下问题:Java Include类的具体用法?Java Include怎么用?Java Include使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Include类属于com.sun.xml.internal.rngom.ast.builder包,在下文中一共展示了Include类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Include
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的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
示例2: createChildState
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
State createChildState(String localName) throws SAXException {
if (localName.equals("define")) {
return new DefineState(section);
}
if (localName.equals("start")) {
return new StartState(section);
}
if (localName.equals("include")) {
Include include = section.makeInclude();
if (include != null) {
return new IncludeState(include);
}
}
if (localName.equals("div")) {
return new DivState(section.makeDiv());
}
error("expected_define", localName);
// XXX better errors
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:SchemaParser.java
示例3: createChildState
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
State createChildState(String localName) throws SAXException {
if (localName.equals("define"))
return new DefineState(section);
if (localName.equals("start"))
return new StartState(section);
if (localName.equals("include")) {
Include include = section.makeInclude();
if (include != null)
return new IncludeState(include);
}
if (localName.equals("div"))
return new DivState(section.makeDiv());
error("expected_define", localName);
// XXX better errors
return null;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:17,代码来源:SchemaParser.java
示例4: GrammarComponent
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的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
示例5: makeInclude
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
public Include makeInclude() {
return new IncludeImpl(grammar,parent,sb);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:GrammarBuilderImpl.java
示例6: makeInclude
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
public Include makeInclude() {
return new IncludeImpl(sb, this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:SchemaBuilderImpl.java
示例7: IncludeState
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
IncludeState(Include include) {
super(include);
this.include = include;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:SchemaParser.java
示例8: IncludeHost
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
IncludeHost(Include lhs, Include rhs) {
super(lhs, rhs);
this.lhs = lhs;
this.rhs = rhs;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:IncludeHost.java
示例9: makeInclude
import com.sun.xml.internal.rngom.ast.builder.Include; //导入依赖的package包/类
public Include makeInclude() {
Include l = lhs.makeInclude();
if(l==null) return null;
return new IncludeHost( l, rhs.makeInclude() );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:GrammarSectionHost.java
注:本文中的com.sun.xml.internal.rngom.ast.builder.Include类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论