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

Examples of com.alibaba.druid.sql.dialect.sqlserver.ast.SQLServerTop


        return false;
    }
   
    public SQLServerTop parseTop() {
        if (lexer.token() == Token.TOP) {
            SQLServerTop top = new SQLServerTop();
            lexer.nextToken();
           
            boolean paren = false;
            if (lexer.token() == Token.LPAREN) {
                paren = true;
                lexer.nextToken();
            }
           
            top.setExpr(primary());
           
            if (paren) {
                accept(Token.RPAREN);
            }
           
            if (lexer.token() == Token.PERCENT) {
                lexer.nextToken();
                top.setPercent(true);
            }
           
            return top;
        }
       
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.sqlserver.ast.SQLServerTop

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.