Search in sources :

Example 1 with Statements

use of io.confluent.ksql.parser.tree.Statements in project ksql by confluentinc.

the class AstBuilder method visitStatements.

@Override
public Node visitStatements(SqlBaseParser.StatementsContext context) {
    List<Statement> statementList = new ArrayList<>();
    for (SqlBaseParser.SingleStatementContext singleStatementContext : context.singleStatement()) {
        Statement statement = (Statement) visitSingleStatement(singleStatementContext);
        statementList.add(statement);
    }
    return new Statements(statementList);
}
Also used : Statement(io.confluent.ksql.parser.tree.Statement) ArrayList(java.util.ArrayList) Statements(io.confluent.ksql.parser.tree.Statements)

Aggregations

Statement (io.confluent.ksql.parser.tree.Statement)1 Statements (io.confluent.ksql.parser.tree.Statements)1 ArrayList (java.util.ArrayList)1