本文整理汇总了Java中net.sf.jsqlparser.expression.WhenClause.setWhenExpression方法的典型用法代码示例。如果您正苦于以下问题:Java WhenClause.setWhenExpression方法的具体用法?Java WhenClause.setWhenExpression怎么用?Java WhenClause.setWhenExpression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jsqlparser.expression.WhenClause
的用法示例。
在下文中一共展示了WhenClause.setWhenExpression方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WhenThenSearchCondition
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenSearchCondition() throws ParseException {WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
Token tk = null;
tk = jj_consume_token(K_WHEN);
if (tk.specialToken != null) {
whenThen.setCommentWhen(tk.specialToken.image);
}
whenExp = Expression();
tk = jj_consume_token(K_THEN);
if (tk.specialToken != null) {
whenThen.setCommentThen(tk.specialToken.image);
}
thenExp = SimpleExpression();
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{if ("" != null) return whenThen;}
throw new Error("Missing return statement in function");
}
示例2: WhenThenValue
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenValue() throws ParseException {WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
Token tk = null;
tk = jj_consume_token(K_WHEN);
if (tk.specialToken != null) {
whenThen.setCommentWhen(tk.specialToken.image);
}
whenExp = PrimaryExpression();
tk = jj_consume_token(K_THEN);
if (tk.specialToken != null) {
whenThen.setCommentThen(tk.specialToken.image);
}
thenExp = SimpleExpression();
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{if ("" != null) return whenThen;}
throw new Error("Missing return statement in function");
}
示例3: WhenThenSearchCondition
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenSearchCondition() throws ParseException {
WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
jj_consume_token(K_WHEN);
whenExp = Expression();
jj_consume_token(K_THEN);
thenExp = Expression();
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{if (true) return whenThen;}
throw new Error("Missing return statement in function");
}
示例4: WhenThenValue
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenValue() throws ParseException {
WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
jj_consume_token(K_WHEN);
whenExp = Expression();
jj_consume_token(K_THEN);
thenExp = Expression();
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{if (true) return whenThen;}
throw new Error("Missing return statement in function");
}
示例5: WhenThenSearchCondition
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenSearchCondition() throws ParseException {
/* @bgen(jjtree) WhenThenSearchCondition */
SimpleNode jjtn000 = new SimpleNode(JJTWHENTHENSEARCHCONDITION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
try {
jj_consume_token(K_WHEN);
whenExp = Expression();
jj_consume_token(K_THEN);
thenExp = SimpleExpression();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{
if (true)
return whenThen;
}
} 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");
}
示例6: WhenThenValue
import net.sf.jsqlparser.expression.WhenClause; //导入方法依赖的package包/类
final public WhenClause WhenThenValue() throws ParseException {
/* @bgen(jjtree) WhenThenValue */
SimpleNode jjtn000 = new SimpleNode(JJTWHENTHENVALUE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
WhenClause whenThen = new WhenClause();
Expression whenExp = null;
Expression thenExp = null;
try {
jj_consume_token(K_WHEN);
whenExp = PrimaryExpression();
jj_consume_token(K_THEN);
thenExp = SimpleExpression();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
whenThen.setWhenExpression(whenExp);
whenThen.setThenExpression(thenExp);
{
if (true)
return whenThen;
}
} 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");
}