本文整理汇总了Java中net.sf.jsqlparser.expression.operators.arithmetic.Concat.setLeftExpression方法的典型用法代码示例。如果您正苦于以下问题:Java Concat.setLeftExpression方法的具体用法?Java Concat.setLeftExpression怎么用?Java Concat.setLeftExpression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jsqlparser.expression.operators.arithmetic.Concat
的用法示例。
在下文中一共展示了Concat.setLeftExpression方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ConcatExpression
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入方法依赖的package包/类
final public Expression ConcatExpression() throws ParseException {
Expression result = null;
Expression rightExpression = null;
result = AdditiveExpression();
label_20:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 95:
;
break;
default:
jj_la1[95] = jj_gen;
break label_20;
}
jj_consume_token(95);
rightExpression = AdditiveExpression();
Concat binExp = new Concat();
binExp.setLeftExpression(result);
binExp.setRightExpression(rightExpression);
result = binExp;
}
{if (true) return result;}
throw new Error("Missing return statement in function");
}
示例2: ConcatExpression
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入方法依赖的package包/类
final public Expression ConcatExpression() throws ParseException {Expression result = null;
Expression leftExpression = null;
Expression rightExpression = null;
Token tk = null;
String concat = null;
leftExpression = AdditiveExpression();
result = leftExpression;
label_20:
while (true) {
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case OR:{
;
break;
}
default:
jj_la1[112] = jj_gen;
break label_20;
}
tk = jj_consume_token(OR);
if (tk.specialToken != null) {
concat=tk.specialToken.image;
}
rightExpression = AdditiveExpression();
Concat binExp = new Concat();
if (concat != null) {binExp.setComment(concat);}
binExp.setLeftExpression(leftExpression);
binExp.setRightExpression(rightExpression);
result = binExp;
leftExpression = result;
}
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
}
示例3: ConcatExpression
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入方法依赖的package包/类
final public Expression ConcatExpression() throws ParseException {
/* @bgen(jjtree) ConcatExpression */
SimpleNode jjtn000 = new SimpleNode(JJTCONCATEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
Expression result = null;
Expression leftExpression = null;
Expression rightExpression = null;
try {
leftExpression = AdditiveExpression();
result = leftExpression;
label_41:
while (true) {
if (jj_2_62(2)) {
;
} else {
break label_41;
}
jj_consume_token(183);
rightExpression = AdditiveExpression();
Concat binExp = new Concat();
binExp.setLeftExpression(leftExpression);
binExp.setRightExpression(rightExpression);
result = binExp;
leftExpression = result;
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
{
if (true)
return result;
}
} 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");
}