public class SQLParser extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
dbType |
private int |
errorEndPos |
protected Lexer |
lexer |
| 构造器和说明 |
|---|
SQLParser(Lexer lexer) |
SQLParser(Lexer lexer,
String dbType) |
SQLParser(String sql) |
SQLParser(String sql,
String dbType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(Token token) |
protected void |
acceptIdentifier(String text) |
int |
acceptInteger() |
protected String |
alias() |
protected String |
as() |
void |
config(SQLParserFeature feature,
boolean state) |
String |
getDbType() |
Lexer |
getLexer() |
protected boolean |
identifierEquals(String text) |
boolean |
isEnabled(SQLParserFeature feature) |
void |
match(Token token) |
protected SQLCreateTableStatement |
newCreateStatement() |
protected void |
printError(Token token) |
protected void |
setErrorEndPos(int errPos) |
protected String |
tableAlias() |
protected String |
tableAlias(boolean must) |
protected final Lexer lexer
protected String dbType
private int errorEndPos
public final Lexer getLexer()
public String getDbType()
protected boolean identifierEquals(String text)
protected void acceptIdentifier(String text)
protected String tableAlias()
protected String tableAlias(boolean must)
protected String as()
protected String alias()
protected void printError(Token token)
public void accept(Token token)
public int acceptInteger()
public void match(Token token)
protected void setErrorEndPos(int errPos)
public void config(SQLParserFeature feature, boolean state)
public final boolean isEnabled(SQLParserFeature feature)
protected SQLCreateTableStatement newCreateStatement()
Copyright © 2013–2019 Alibaba Group. All rights reserved.