Search in sources :

Example 1 with BlockNode

use of org.seasar.doma.internal.jdbc.sql.node.BlockNode in project doma by domaframework.

the class SqlParser method parseEndBlockComment.

protected void parseEndBlockComment() {
    if (!isInBlockNode()) {
        throw new JdbcException(Message.DOMA2104, sql, tokenizer.getLineNumber(), tokenizer.getPosition());
    }
    removeNodesTo(BlockNode.class);
    BlockNode blockNode = pop();
    EndNode node = new EndNode(token);
    blockNode.setEndNode(node);
    push(node);
}
Also used : IfBlockNode(org.seasar.doma.internal.jdbc.sql.node.IfBlockNode) ForBlockNode(org.seasar.doma.internal.jdbc.sql.node.ForBlockNode) BlockNode(org.seasar.doma.internal.jdbc.sql.node.BlockNode) EndNode(org.seasar.doma.internal.jdbc.sql.node.EndNode) JdbcException(org.seasar.doma.jdbc.JdbcException)

Aggregations

BlockNode (org.seasar.doma.internal.jdbc.sql.node.BlockNode)1 EndNode (org.seasar.doma.internal.jdbc.sql.node.EndNode)1 ForBlockNode (org.seasar.doma.internal.jdbc.sql.node.ForBlockNode)1 IfBlockNode (org.seasar.doma.internal.jdbc.sql.node.IfBlockNode)1 JdbcException (org.seasar.doma.jdbc.JdbcException)1