当前位置: 首页>>代码示例>>Java>>正文


Java Concat.setLeftExpression方法代码示例

本文整理汇总了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");
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:25,代码来源:CCJSqlParser.java

示例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");
  }
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:34,代码来源:CCJSqlParser.java

示例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");
  }
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:63,代码来源:CCJSqlParser.java


注:本文中的net.sf.jsqlparser.expression.operators.arithmetic.Concat.setLeftExpression方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。