本文整理汇总了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);
}
示例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();
}
示例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();
}
示例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();
}
}
示例5: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression expr)
{
invalid = true;
super.visit(expr);
}
示例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");
}
示例7: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression expr) {
visitBinaryExpression(expr);
}
示例8: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) {
visitBinaryExpression(orExpression, " OR ");
}
示例9: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression) {
visitBinaryExpression(orExpression);
}
示例10: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
public void visit(OrExpression orExpression) {
orExpression.getLeftExpression().accept(this);
orExpression.getRightExpression().accept(this);
}
示例11: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression oe) {
acceptBinaryExpression(oe);
}
示例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();
}
示例13: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
@Override
public void visit(OrExpression orExpression)
{
visitBinaryExpression(orExpression);
}
示例14: visit
import net.sf.jsqlparser.expression.operators.conditional.OrExpression; //导入依赖的package包/类
public void visit(OrExpression orExpression) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例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");
}