本文整理汇总了Java中net.sf.jsqlparser.expression.operators.arithmetic.Concat类的典型用法代码示例。如果您正苦于以下问题:Java Concat类的具体用法?Java Concat怎么用?Java Concat使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Concat类属于net.sf.jsqlparser.expression.operators.arithmetic包,在下文中一共展示了Concat类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: visitBinaryExpression
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
protected ISqlExpression visitBinaryExpression(BinaryExpression binaryExpression)
{
binaryExpression.getLeftExpression().accept(this);
ISqlExpression leftParameter = getExpression();
binaryExpression.getRightExpression().accept(this);
ISqlExpression rightParameter = getExpression();
if (binaryExpression instanceof Addition) {
return sSqlFactory.createAdditionExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof Subtraction) {
return sSqlFactory.createSubstractExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof Multiplication) {
return sSqlFactory.createMultiplyExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof Division) {
return sSqlFactory.createDivideExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof Concat) {
return sSqlFactory.createConcatExpression(leftParameter, rightParameter);
}
throw new UnsupportedSqlExpressionException(binaryExpression.toString());
}
示例3: 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");
}
示例4: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat concat)
{
mExpression = visitBinaryExpression(concat);
if (mOpenParenthesisCount != 0) {
decreaseOpenParenthesisCount();
}
}
示例5: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat expr)
{
invalid = true;
super.visit(expr);
}
示例6: 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");
}
示例7: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat expr) {
visitBinaryExpression(expr);
}
示例8: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat concat) {
visitBinaryExpression(concat, " || ");
}
示例9: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat concat) {
visitBinaryExpression(concat);
}
示例10: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat concat) {
// TODO Auto-generated method stub
}
示例11: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat concat
) {
acceptBinaryExpression(concat);
}
示例12: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat arg0) {
log.debug("sql expression = " + arg0.getStringExpression());
value = arg0.getStringExpression();
}
示例13: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
public void visit(Concat concat) {
visitBinaryExpression(concat);
}
示例14: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
@Override
public void visit(Concat arg0) {
isSimple = false;
}
示例15: visit
import net.sf.jsqlparser.expression.operators.arithmetic.Concat; //导入依赖的package包/类
public void visit(Concat concat) {
visitBinaryExpression(concat, (concat.getComment() != null ? " " + concat.getComment() + ExpressionDeParser.LINE_SEPARATOR : "") + " || ");
}