Package com.alibaba.druid.sql.parser
Class SQLParser
- java.lang.Object
-
- com.alibaba.druid.sql.parser.SQLParser
-
- Direct Known Subclasses:
SQLExprParser,SQLSelectParser,SQLStatementParser
public class SQLParser extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Token token)protected voidacceptIdentifier(Long hash)protected voidacceptIdentifier(String text)intacceptInteger()protected Stringalias()protected Stringas()voidconfig(SQLParserFeature feature, boolean state)protected booleandialectFeatureEnabled(DialectFeature.ParserFeature feature)DbTypegetDbType()LexergetLexer()TimeZonegetTimeZone()protected booleanidentifierEquals(String text)booleanisEnabled(SQLParserFeature feature)voidmatch(Token token)protected SQLCreateTableStatementnewCreateStatement()protected voidprintError(Token token)protected voidsetErrorEndPos(int errPos)voidsetTimeZone(TimeZone timeZone)protected StringtableAlias()protected StringtableAlias(boolean must)
-
-
-
Method Detail
-
getLexer
public final Lexer getLexer()
-
getDbType
public DbType getDbType()
-
identifierEquals
protected boolean identifierEquals(String text)
-
acceptIdentifier
protected void acceptIdentifier(String text)
-
acceptIdentifier
protected void acceptIdentifier(Long hash)
-
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()
-
dialectFeatureEnabled
protected boolean dialectFeatureEnabled(DialectFeature.ParserFeature feature)
-
-