use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangSelectClause selectClause) {
GroupByNode groupByNode = selectClause.getGroupBy();
if (groupByNode != null) {
((BLangGroupBy) groupByNode).accept(this);
}
HavingNode havingNode = selectClause.getHaving();
if (havingNode != null) {
((BLangHaving) havingNode).accept(this);
}
List<? extends SelectExpressionNode> selectExpressionsList = selectClause.getSelectExpressions();
if (selectExpressionsList != null) {
for (SelectExpressionNode selectExpressionNode : selectExpressionsList) {
((BLangSelectExpression) selectExpressionNode).accept(this);
}
}
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.
the class SiddhiQueryBuilder method createSiddhiHavingClause.
private void createSiddhiHavingClause(BLangSelectClause select) {
BLangHaving having = (BLangHaving) select.getHaving();
having.accept(this);
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.
the class SqlQueryBuilder method visit.
@Override
public void visit(BLangHaving having) {
BLangBinaryExpr expr = (BLangBinaryExpr) having.getExpression();
havingClause = new StringBuilder("having ");
addParametrizedSQL(expr, havingClause, havingExprParams);
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.
the class TypeChecker method visit.
@Override
public void visit(BLangHaving having) {
BLangExpression expr = (BLangExpression) having.getExpression();
expr.accept(this);
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.
the class TypeChecker method visit.
@Override
public void visit(BLangSelectClause selectClause) {
List<? extends SelectExpressionNode> selectExprList = selectClause.getSelectExpressions();
selectExprList.forEach(selectExpr -> ((BLangSelectExpression) selectExpr).accept(this));
BLangGroupBy groupBy = (BLangGroupBy) selectClause.getGroupBy();
if (groupBy != null) {
groupBy.accept(this);
}
BLangHaving having = (BLangHaving) selectClause.getHaving();
if (having != null) {
having.accept(this);
}
}
Aggregations