Search in sources :

Example 1 with ElseNode

use of org.dbflute.twowaysql.node.ElseNode in project dbflute-core by dbflute.

the class SqlAnalyzer method parseElse.

// ===================================================================================
// ELSE Comment
// ============
protected void parseElse() {
    final Node parent = peek();
    if (!(parent instanceof IfNode)) {
        return;
    }
    final IfNode ifNode = (IfNode) pop();
    final ElseNode elseNode = createElseNode();
    ifNode.setElseNode(elseNode);
    push(elseNode);
    _tokenizer.skipWhitespace();
}
Also used : BindVariableNode(org.dbflute.twowaysql.node.BindVariableNode) LoopFirstNode(org.dbflute.twowaysql.node.LoopFirstNode) ForNode(org.dbflute.twowaysql.node.ForNode) BeginNode(org.dbflute.twowaysql.node.BeginNode) SqlPartsNode(org.dbflute.twowaysql.node.SqlPartsNode) EmbeddedVariableNode(org.dbflute.twowaysql.node.EmbeddedVariableNode) SqlConnectorNode(org.dbflute.twowaysql.node.SqlConnectorNode) LoopNextNode(org.dbflute.twowaysql.node.LoopNextNode) ElseNode(org.dbflute.twowaysql.node.ElseNode) LoopLastNode(org.dbflute.twowaysql.node.LoopLastNode) LoopAbstractNode(org.dbflute.twowaysql.node.LoopAbstractNode) RootNode(org.dbflute.twowaysql.node.RootNode) IfNode(org.dbflute.twowaysql.node.IfNode) Node(org.dbflute.twowaysql.node.Node) ElseNode(org.dbflute.twowaysql.node.ElseNode) IfNode(org.dbflute.twowaysql.node.IfNode)

Aggregations

BeginNode (org.dbflute.twowaysql.node.BeginNode)1 BindVariableNode (org.dbflute.twowaysql.node.BindVariableNode)1 ElseNode (org.dbflute.twowaysql.node.ElseNode)1 EmbeddedVariableNode (org.dbflute.twowaysql.node.EmbeddedVariableNode)1 ForNode (org.dbflute.twowaysql.node.ForNode)1 IfNode (org.dbflute.twowaysql.node.IfNode)1 LoopAbstractNode (org.dbflute.twowaysql.node.LoopAbstractNode)1 LoopFirstNode (org.dbflute.twowaysql.node.LoopFirstNode)1 LoopLastNode (org.dbflute.twowaysql.node.LoopLastNode)1 LoopNextNode (org.dbflute.twowaysql.node.LoopNextNode)1 Node (org.dbflute.twowaysql.node.Node)1 RootNode (org.dbflute.twowaysql.node.RootNode)1 SqlConnectorNode (org.dbflute.twowaysql.node.SqlConnectorNode)1 SqlPartsNode (org.dbflute.twowaysql.node.SqlPartsNode)1