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


Java OrExpression类代码示例

本文整理汇总了Java中net.sf.jsqlparser.expression.operators.conditional.OrExpression的典型用法代码示例。如果您正苦于以下问题:Java OrExpression类的具体用法?Java OrExpression怎么用?Java OrExpression使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OrExpression类属于net.sf.jsqlparser.expression.operators.conditional包,在下文中一共展示了OrExpression类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: computeExpression

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
public double computeExpression(Expression exp, DataRow data) {

        //TODO all cases

        if (exp instanceof ComparisonOperator) {
            return computeComparisonOperator((ComparisonOperator) exp, data);
        }
        if (exp instanceof AndExpression) {
            return computeAnd((AndExpression) exp, data);
        }
        if (exp instanceof OrExpression) {
            return computeOr((OrExpression) exp, data);
        }
        if( exp instanceof IsNullExpression){
            return computeIsNull((IsNullExpression) exp, data);
        }
        if(exp instanceof InExpression){
            return computeInExpression((InExpression) exp, data);
        }
        if(exp instanceof Parenthesis){
            return computeExpression(((Parenthesis) exp).getExpression(), data);
        }

        return cannotHandle(exp);
    }
 
开发者ID:EMResearch,项目名称:EvoMaster,代码行数:26,代码来源:HeuristicsCalculator.java

示例2: toString

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public String toString() {
	StringBuilder sb = new StringBuilder(isNot() ? "NOT " : "");
	
	if(getLeftExpression() instanceof OrExpression) {
		sb.append("(").append(getLeftExpression()).append(")");
	} else {
		sb.append(getLeftExpression());
	}
	
	sb.append(" ").append(getStringExpression()).append(" ");
	
	if(getRightExpression() instanceof OrExpression) {
		sb.append("(").append(getRightExpression()).append(")");
	} else {
		sb.append(getRightExpression());
	}
	
	return sb.toString();
}
 
开发者ID:pugwoo,项目名称:nimble-orm,代码行数:21,代码来源:FixedAndExpression.java

示例3: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) {
  terminalState.push(TerminalState.OR);
  orExpression.getLeftExpression().accept(this);
  orExpression.getRightExpression().accept(this);
  terminalState.pop();
}
 
开发者ID:Hanmourang,项目名称:Pinot,代码行数:8,代码来源:ThirdEyeQueryParser.java

示例4: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression expression)
{
   expression.getLeftExpression().accept(this);
   expression.getRightExpression().accept(this);

   ISqlExpression rightExpression = mFilterExpressions.pop();
   ISqlExpression leftExpression = mFilterExpressions.pop();
   ISqlExpression orExpression = sSqlFactory.createOrExpression(leftExpression, rightExpression);
   mFilterExpressions.push(orExpression);

   if (mOpenParenthesisCount != 0) {
      decreaseOpenParenthesisCount();
   }
}
 
开发者ID:obidea,项目名称:semantika,代码行数:16,代码来源:SelectStatementHandler.java

示例5: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression expr)
{
	invalid = true;
	super.visit(expr);
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:7,代码来源:DMLWhereClauseVisitorAdapter.java

示例6: Expression

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
final public Expression Expression() throws ParseException {
/* @bgen(jjtree) Expression */
      SimpleNode jjtn000 = new SimpleNode(JJTEXPRESSION);
      boolean jjtc000 = true;
      jjtree.openNodeScope(jjtn000);
      Expression retval = null;
      try {
          retval = OrExpression();
          jjtree.closeNodeScope(jjtn000, true);
          jjtc000 = false;
          {
              if (true)
                  return retval;
          }
      } 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,代码行数:45,代码来源:CCJSqlParser.java

示例7: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression expr) {
    visitBinaryExpression(expr);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:ExpressionVisitorAdapter.java

示例8: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) {
    visitBinaryExpression(orExpression, " OR ");

}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:6,代码来源:ExpressionDeParser.java

示例9: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) {
    visitBinaryExpression(orExpression);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:TablesNamesFinder.java

示例10: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
public void visit(OrExpression orExpression) {
    orExpression.getLeftExpression().accept(this);
    orExpression.getRightExpression().accept(this);
}
 
开发者ID:adamkewley,项目名称:jobson,代码行数:5,代码来源:AllColumnRefsFinder.java

示例11: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression oe) {
    acceptBinaryExpression(oe);
}
 
开发者ID:diennea,项目名称:herddb,代码行数:5,代码来源:ColumnReferencesDiscovery.java

示例12: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression arg0) {
   log.debug("sql expression = " + arg0.toString());
   value = arg0.getStringExpression();
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:6,代码来源:SqlExpressionParser.java

示例13: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) 
{
    visitBinaryExpression(orExpression);
}
 
开发者ID:sogou-biztech,项目名称:compass,代码行数:6,代码来源:TableRenameVisitor.java

示例14: visit

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
public void visit(OrExpression orExpression) {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
开发者ID:zhicwu,项目名称:cassandra-jdbc-driver,代码行数:4,代码来源:SqlToCqlTranslator.java

示例15: Expression

import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
final public Expression Expression() throws ParseException {
      Expression retval = null;
  retval = OrExpression();
                                {if (true) return retval;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:7,代码来源:CCJSqlParser.java


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