use of org.wso2.carbon.identity.core.model.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.wso2.carbon.identity.core.model.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.wso2.carbon.identity.core.model.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.wso2.carbon.identity.core.model.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.wso2.carbon.identity.core.model.ExpressionNode in project ballerina by ballerina-lang.
the class SiddhiQueryBuilder method visit.
@Override
public void visit(BLangOrderBy orderBy) {
List<? extends ExpressionNode> varRefs = orderBy.getVariables();
Iterator<? extends ExpressionNode> iterator = varRefs.iterator();
BLangSimpleVarRef variableRef = (BLangSimpleVarRef) iterator.next();
orderByClause = new StringBuilder("order by ");
addVarRefToClauseBuilder(variableRef, orderByClause);
while (iterator.hasNext()) {
orderByClause.append(",").append(" ");
variableRef = (BLangSimpleVarRef) iterator.next();
addVarRefToClauseBuilder(variableRef, orderByClause);
}
}
Aggregations