本文整理汇总了Java中net.sf.jsqlparser.statement.select.WithItem.setSelectBody方法的典型用法代码示例。如果您正苦于以下问题:Java WithItem.setSelectBody方法的具体用法?Java WithItem.setSelectBody怎么用?Java WithItem.setSelectBody使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jsqlparser.statement.select.WithItem
的用法示例。
在下文中一共展示了WithItem.setSelectBody方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WithItem
import net.sf.jsqlparser.statement.select.WithItem; //导入方法依赖的package包/类
final public WithItem WithItem() throws ParseException {
WithItem with = new WithItem();
String name = null;
List selectItems = null;
SelectBody selectBody = null;
name = RelObjectName();
with.setName(name);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 80:
jj_consume_token(80);
selectItems = SelectItemsList();
jj_consume_token(81);
with.setWithItemList(selectItems);
break;
default:
jj_la1[51] = jj_gen;
;
}
jj_consume_token(K_AS);
jj_consume_token(80);
selectBody = SelectBody();
with.setSelectBody(selectBody);
jj_consume_token(81);
{if (true) return with;}
throw new Error("Missing return statement in function");
}
示例2: WithItem
import net.sf.jsqlparser.statement.select.WithItem; //导入方法依赖的package包/类
final public WithItem WithItem() throws ParseException {
/* @bgen(jjtree) WithItem */
SimpleNode jjtn000 = new SimpleNode(JJTWITHITEM);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
WithItem with = new WithItem();
String name = null;
List<SelectItem> selectItems = null;
SelectBody selectBody = null;
try {
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case K_RECURSIVE:
jj_consume_token(K_RECURSIVE);
with.setRecursive(true);
break;
default:
jj_la1[91] = jj_gen;
;
}
name = RelObjectName();
with.setName(name);
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case 166:
jj_consume_token(166);
selectItems = SelectItemsList();
jj_consume_token(167);
with.setWithItemList(selectItems);
break;
default:
jj_la1[92] = jj_gen;
;
}
jj_consume_token(K_AS);
jj_consume_token(166);
selectBody = SelectBody();
with.setSelectBody(selectBody);
jj_consume_token(167);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
{
if (true)
return with;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{
if (true)
throw (RuntimeException) jjte000;
}
}
if (jjte000 instanceof ParseException) {
{
if (true)
throw (ParseException) jjte000;
}
}
{
if (true)
throw (Error) jjte000;
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new Error("Missing return statement in function");
}
示例3: WithItem
import net.sf.jsqlparser.statement.select.WithItem; //导入方法依赖的package包/类
final public WithItem WithItem() throws ParseException {WithItem with = new WithItem();
String name = null;
List selectItems = null;
SelectBody selectBody = null;
Token tk = null;
List commentComma = new ArrayList();
name = RelObjectName();
if (token.specialToken != null) {
with.setCommentName(token.specialToken.image);
}
with.setName(name);
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case LPAREN:{
tk = jj_consume_token(LPAREN);
if (tk.specialToken != null) {
with.setCommentBeginBracketWith(tk.specialToken.image);
}
selectItems = SelectItemsList(commentComma);
tk = jj_consume_token(RPAREN);
if (tk.specialToken != null) {
with.setCommentEndBracketWith(tk.specialToken.image);
}
with.setWithItemList(selectItems);
with.setCommentsCommaWith(commentComma);
break;
}
default:
jj_la1[55] = jj_gen;
;
}
tk = jj_consume_token(K_AS);
if (tk.specialToken != null) {
with.setCommentAs(tk.specialToken.image);
}
tk = jj_consume_token(LPAREN);
if (tk.specialToken != null) {
with.setCommentBeginBracketAs(tk.specialToken.image);
}
selectBody = SelectBody();
with.setSelectBody(selectBody);
tk = jj_consume_token(RPAREN);
if (tk.specialToken != null) {
with.setCommentEndBracketAs(tk.specialToken.image);
}
{if ("" != null) return with;}
throw new Error("Missing return statement in function");
}