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


Java ExpressionList.getExpressions方法代码示例

本文整理汇总了Java中net.sf.jsqlparser.expression.operators.relational.ExpressionList.getExpressions方法的典型用法代码示例。如果您正苦于以下问题:Java ExpressionList.getExpressions方法的具体用法?Java ExpressionList.getExpressions怎么用?Java ExpressionList.getExpressions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sf.jsqlparser.expression.operators.relational.ExpressionList的用法示例。


在下文中一共展示了ExpressionList.getExpressions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getFunctionResultType

import net.sf.jsqlparser.expression.operators.relational.ExpressionList; //导入方法依赖的package包/类
private String getFunctionResultType(List<ProjectionItem> fromProjections) throws AmbiguousCoalesceException {
	if (function.isAllColumns()) {
		return determineFunctionType(null);
	} else {
		List<String> paramsTypes = Lists.newArrayList();
		
		ExpressionList functionParams = function.getParameters();
		if (functionParams != null) {
			List<Expression> params = functionParams.getExpressions();
			
			for (Expression param : params) {
				paramsTypes.add(getTypeFromSubExpression(param, fromProjections));
			}
		}
		
		return determineFunctionType(paramsTypes);
	}
}
 
开发者ID:sebastianoe,项目名称:s4j,代码行数:19,代码来源:FunctionProjector.java

示例2: create

import net.sf.jsqlparser.expression.operators.relational.ExpressionList; //导入方法依赖的package包/类
public static CompiledInExpression create(InExpression in, String validatedTableAlias) {
    if (in.getLeftItemsList() != null) {
        throw new StatementExecutionException("Unsupported operand " + in.getClass() + " with a non-expression left argument (" + in + ")");
    }
    CompiledSQLExpression left = compileExpression(validatedTableAlias, in.getLeftExpression());
    if (left == null) {
        return null;
    }

    if (in.getRightItemsList() instanceof ExpressionList) {
        List<CompiledSQLExpression> expList = new ArrayList<>();
        ExpressionList exps = (ExpressionList) in.getRightItemsList();
        for (Expression exp : exps.getExpressions()) {
            CompiledSQLExpression newExp = compileExpression(validatedTableAlias, exp);
            if (newExp == null) {
                return null;
            }
            expList.add(newExp);
        }
        return new CompiledInExpression(in.isNot(), left, expList, null);
    }

    if (in.getRightItemsList() instanceof SubSelect) {
        SubSelect ss = (SubSelect) in.getRightItemsList();
        if (!(ss.getSelectBody() instanceof PlainSelect)) {
            throw new StatementExecutionException("unsupported operand " + in.getClass()
                    + " with subquery of type " + ss.getClass() + "(" + ss + ")");
        }
        return new CompiledInExpression(in.isNot(), left, null, ss);
    }

    throw new StatementExecutionException("unsupported operand " + in.getClass()
            + " with argument of type " + in.getRightItemsList().getClass() + "(" + in + ")");
}
 
开发者ID:diennea,项目名称:herddb,代码行数:35,代码来源:CompiledInExpression.java

示例3: visit

import net.sf.jsqlparser.expression.operators.relational.ExpressionList; //导入方法依赖的package包/类
@Override
public void visit(ExpressionList expressionList) {
    List<Expression> expressions = expressionList.getExpressions();
    int size = expressions.size();
    for (int i = 0; i < size; i++) {
        Expression e = expressions.get(i);
        if (e instanceof JdbcParameter) {
            e = ImmutableExpressionsCache.internOrFixJdbcParameterExpression((JdbcParameter) e);
        }
        expressions.set(i, e);
        e.accept(this);
    }
}
 
开发者ID:diennea,项目名称:herddb,代码行数:14,代码来源:JdbcQueryRewriter.java

示例4: visit

import net.sf.jsqlparser.expression.operators.relational.ExpressionList; //导入方法依赖的package包/类
@Override
public void visit(ExpressionList expressionList) {
    for (Expression expr : expressionList.getExpressions()) {
        expr.accept(this);
    }
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:7,代码来源:ExpressionVisitorAdapter.java

示例5: visit

import net.sf.jsqlparser.expression.operators.relational.ExpressionList; //导入方法依赖的package包/类
@Override
public void visit(ExpressionList expressionList) {
    for (Expression expression : expressionList.getExpressions()) {
        expression.accept(this);
    }
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:7,代码来源:TablesNamesFinder.java


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