use of org.ballerinalang.model.tree.expressions.ExpressionNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangWhere whereClause) {
ExpressionNode expressionNode = whereClause.getExpression();
((BLangExpression) expressionNode).accept(this);
}
use of org.ballerinalang.model.tree.expressions.ExpressionNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangJoinStreamingInput joinStreamingInput) {
StreamingInput streamingInput = joinStreamingInput.getStreamingInput();
if (streamingInput != null) {
((BLangStreamingInput) streamingInput).accept(this);
}
ExpressionNode expressionNode = joinStreamingInput.getOnExpression();
if (expressionNode != null) {
((BLangExpression) expressionNode).accept(this);
}
}
use of org.ballerinalang.model.tree.expressions.ExpressionNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangSelectExpression selectExpression) {
ExpressionNode expressionNode = selectExpression.getExpression();
((BLangExpression) expressionNode).accept(this);
}
use of org.ballerinalang.model.tree.expressions.ExpressionNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangSetAssignment setAssignmentClause) {
ExpressionNode expressionNode = setAssignmentClause.getExpressionNode();
((BLangExpression) expressionNode).accept(this);
ExpressionNode variableReference = setAssignmentClause.getVariableReference();
((BLangExpression) variableReference).accept(this);
}
use of org.ballerinalang.model.tree.expressions.ExpressionNode in project ballerina by ballerina-lang.
the class SiddhiQueryBuilder method visit.
@Override
public void visit(BLangBinaryExpr expr) {
binaryExpr = new StringBuilder();
ExpressionNode leftExpression = expr.getLeftExpression();
if (leftExpression != null) {
addVarRefToClauseBuilder((BLangExpression) leftExpression, binaryExpr);
}
OperatorKind operatorKind = expr.getOperatorKind();
if (operatorKind != null) {
binaryExpr.append(" ").append(getOperandAsString(operatorKind)).append(" ");
}
ExpressionNode rightExpression = expr.getRightExpression();
if (rightExpression != null) {
addVarRefToClauseBuilder((BLangExpression) rightExpression, binaryExpr);
}
varRef = binaryExpr.toString();
}
Aggregations