Package com.alibaba.druid.sql.dialect.sqlserver.ast.stmt

Examples of com.alibaba.druid.sql.dialect.sqlserver.ast.stmt.SQLServerIfStatement


    }
   
    public SQLServerIfStatement parseIf() {
        accept(Token.IF);

        SQLServerIfStatement stmt = new SQLServerIfStatement();

        stmt.setCondition(this.exprParser.expr());

        this.parseStatementList(stmt.getStatements(), 1);
       
        if(lexer.token() == Token.SEMI) {
            lexer.nextToken();
        }

        if (lexer.token() == Token.ELSE) {
            lexer.nextToken();

            SQLServerIfStatement.Else elseItem = new SQLServerIfStatement.Else();
            this.parseStatementList(elseItem.getStatements(), 1);
            stmt.setElseItem(elseItem);
        }

        return stmt;
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.sqlserver.ast.stmt.SQLServerIfStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.