use of org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr in project ballerina by ballerina-lang.
the class SiddhiQueryBuilder method visit.
@Override
public void visit(BLangWhere where) {
whereClause = new StringBuilder();
whereClause.append("[");
BLangBinaryExpr expr = (BLangBinaryExpr) where.getExpression();
expr.accept(this);
whereClause.append(binaryExpr);
whereClause.append("]");
}
use of org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr in project ballerina by ballerina-lang.
the class SiddhiQueryBuilder method visit.
@Override
public void visit(BLangHaving having) {
BLangBinaryExpr expr = (BLangBinaryExpr) having.getExpression();
havingClause = new StringBuilder("having ");
expr.accept(this);
havingClause.append(binaryExpr);
}
use of org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr in project ballerina by ballerina-lang.
the class BLangPackageBuilder method createBinaryExpr.
public void createBinaryExpr(DiagnosticPos pos, Set<Whitespace> ws, String operator) {
BLangBinaryExpr binaryExpressionNode = (BLangBinaryExpr) TreeBuilder.createBinaryExpressionNode();
binaryExpressionNode.pos = pos;
binaryExpressionNode.addWS(ws);
binaryExpressionNode.rhsExpr = (BLangExpression) exprNodeStack.pop();
binaryExpressionNode.lhsExpr = (BLangExpression) exprNodeStack.pop();
binaryExpressionNode.opKind = OperatorKind.valueFrom(operator);
addExpressionNode(binaryExpressionNode);
}
use of org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr in project ballerina by ballerina-lang.
the class SqlQueryBuilder method visit.
@Override
public void visit(BLangWhere where) {
whereClause = new StringBuilder();
whereClause.append("where ");
BLangBinaryExpr expr = (BLangBinaryExpr) where.getExpression();
addParametrizedSQL(expr, whereClause, whereExprParams);
}
use of org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr in project ballerina by ballerina-lang.
the class SqlQueryBuilder method visit.
@Override
public void visit(BLangJoinStreamingInput joinStreamingInput) {
BLangBinaryExpr expr = (BLangBinaryExpr) joinStreamingInput.getOnExpression();
BLangStreamingInput streamingInput = (BLangStreamingInput) joinStreamingInput.getStreamingInput();
joinStreamingInputClause = new StringBuilder();
streamingInput.accept(this);
joinStreamingInputClause.append("join ").append(streamingInputClause).append(" on ");
addParametrizedSQL(expr, joinStreamingInputClause, joinOnExprParams);
}
Aggregations