本文整理汇总了Java中net.sf.jsqlparser.statement.drop.Drop.setParameters方法的典型用法代码示例。如果您正苦于以下问题:Java Drop.setParameters方法的具体用法?Java Drop.setParameters怎么用?Java Drop.setParameters使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jsqlparser.statement.drop.Drop
的用法示例。
在下文中一共展示了Drop.setParameters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Drop
import net.sf.jsqlparser.statement.drop.Drop; //导入方法依赖的package包/类
final public Drop Drop() throws ParseException {
Drop drop = new Drop();
Token tk = null;
List dropArgs = new ArrayList();
jj_consume_token(K_DROP);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case S_IDENTIFIER:
tk = jj_consume_token(S_IDENTIFIER);
break;
case K_TABLE:
tk = jj_consume_token(K_TABLE);
break;
case K_INDEX:
tk = jj_consume_token(K_INDEX);
break;
default:
jj_la1[135] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
drop.setType(tk.image);
tk = jj_consume_token(S_IDENTIFIER);
drop.setName(tk.image);
label_34:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case S_IDENTIFIER:
;
break;
default:
jj_la1[136] = jj_gen;
break label_34;
}
tk = jj_consume_token(S_IDENTIFIER);
dropArgs.add(tk.image);
}
if (dropArgs.size() > 0)
drop.setParameters(dropArgs);
{if (true) return drop;}
throw new Error("Missing return statement in function");
}
示例2: Drop
import net.sf.jsqlparser.statement.drop.Drop; //导入方法依赖的package包/类
final public Drop Drop() throws ParseException {Drop drop = new Drop();
Token tk = null;
List dropArgs = new ArrayList();
List commentArgs = new ArrayList();
tk = jj_consume_token(K_DROP);
if (tk.specialToken != null) {
drop.setComment(tk.specialToken.image);
}
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case S_IDENTIFIER:{
tk = jj_consume_token(S_IDENTIFIER);
break;
}
case K_TABLE:{
tk = jj_consume_token(K_TABLE);
break;
}
case K_INDEX:{
tk = jj_consume_token(K_INDEX);
break;
}
default:
jj_la1[162] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
drop.setType(tk.image);
if (tk.specialToken != null) {drop.setTypeComment(tk.specialToken.image); }
tk = jj_consume_token(S_IDENTIFIER);
if (tk.specialToken != null) {drop.setNameComment(tk.specialToken.image);}
drop.setName(tk.image);
label_35:
while (true) {
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case S_IDENTIFIER:{
;
break;
}
default:
jj_la1[163] = jj_gen;
break label_35;
}
tk = jj_consume_token(S_IDENTIFIER);
if (tk.specialToken != null) {commentArgs.add(tk.specialToken.image);}
else {commentArgs.add("");}
dropArgs.add(tk.image);
}
if (dropArgs.size() > 0) {
drop.setParameters(dropArgs);
drop.setParametersComment(commentArgs);
}
{if ("" != null) return drop;}
throw new Error("Missing return statement in function");
}