Class SQLParser

java.lang.Object
com.alibaba.druid.sql.parser.SQLParser
Direct Known Subclasses:
SQLExprParser, SQLSelectParser, SQLStatementParser

public class SQLParser extends Object
  • Field Details

    • lexer

      protected final Lexer lexer
    • dbType

      protected DbType dbType
  • Constructor Details

  • Method Details

    • getLexer

      public final Lexer getLexer()
    • getDbType

      public DbType getDbType()
    • identifierEquals

      protected boolean identifierEquals(String text)
    • acceptIdentifier

      protected void acceptIdentifier(String text)
    • tableAlias

      protected String tableAlias()
    • tableAlias

      protected String tableAlias(boolean must)
    • as

      protected String as()
    • alias

      protected String alias()
    • printError

      protected void printError(Token token)
    • accept

      public void accept(Token token)
    • acceptInteger

      public int acceptInteger()
    • match

      public void match(Token token)
    • setErrorEndPos

      protected void setErrorEndPos(int errPos)
    • config

      public void config(SQLParserFeature feature, boolean state)
    • getTimeZone

      public TimeZone getTimeZone()
    • setTimeZone

      public void setTimeZone(TimeZone timeZone)
    • isEnabled

      public final boolean isEnabled(SQLParserFeature feature)
    • newCreateStatement

      protected SQLCreateTableStatement newCreateStatement()