本文整理汇总了Java中com.sun.xml.internal.rngom.ast.builder.GrammarSection.COMBINE_CHOICE属性的典型用法代码示例。如果您正苦于以下问题:Java GrammarSection.COMBINE_CHOICE属性的具体用法?Java GrammarSection.COMBINE_CHOICE怎么用?Java GrammarSection.COMBINE_CHOICE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.xml.internal.rngom.ast.builder.GrammarSection
的用法示例。
在下文中一共展示了GrammarSection.COMBINE_CHOICE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AssignOp
final public GrammarSection.Combine AssignOp() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 2:
jj_consume_token(2);
{if (true) return null;}
break;
case 4:
jj_consume_token(4);
{if (true) return GrammarSection.COMBINE_CHOICE;}
break;
case 3:
jj_consume_token(3);
{if (true) return GrammarSection.COMBINE_INTERLEAVE;}
break;
default:
jj_la1[40] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
throw new Error("Missing return statement in function");
}
示例2: setOtherAttribute
@Override
void setOtherAttribute(String name, String value) throws SAXException {
if (name.equals("combine")) {
value = value.trim();
if (value.equals("choice")) {
combine = GrammarSection.COMBINE_CHOICE;
} else if (value.equals("interleave")) {
combine = GrammarSection.COMBINE_INTERLEAVE;
} else {
error("combine_attribute_bad_value", value);
}
} else {
super.setOtherAttribute(name, value);
}
}
示例3: setOtherAttribute
void setOtherAttribute(String name, String value) throws SAXException {
if (name.equals("combine")) {
value = value.trim();
if (value.equals("choice"))
combine = GrammarSection.COMBINE_CHOICE;
else if (value.equals("interleave"))
combine = GrammarSection.COMBINE_INTERLEAVE;
else
error("combine_attribute_bad_value", value);
}
else
super.setOtherAttribute(name, value);
}