本文整理汇总了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);
}
}
示例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 + ")");
}
示例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);
}
}
示例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);
}
}
示例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);
}
}