public class SQLExprParser extends SQLParser
| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
AGGREGATE_FUNCTIONS |
static long[] |
AGGREGATE_FUNCTIONS_CODES |
protected long[] |
aggregateFunctionHashCodes |
protected String[] |
aggregateFunctions |
protected boolean |
allowIdentifierMethod |
| 构造器和说明 |
|---|
SQLExprParser(Lexer lexer) |
SQLExprParser(Lexer lexer,
String dbType) |
SQLExprParser(String sql) |
SQLExprParser(String sql,
String dbType) |
acceptIdentifier, acceptInteger, alias, as, config, getDbType, getLexer, identifierEquals, isEnabled, match, newCreateStatement, printError, setErrorEndPos, tableAlias, tableAliaspublic static final String[] AGGREGATE_FUNCTIONS
public static final long[] AGGREGATE_FUNCTIONS_CODES
protected String[] aggregateFunctions
protected long[] aggregateFunctionHashCodes
protected boolean allowIdentifierMethod
public SQLExprParser(String sql)
public SQLExprParser(Lexer lexer)
public SQLExpr expr()
public final SQLExpr bitXor()
public final SQLExpr multiplicative()
public SQLIntegerExpr integerExpr()
public int parseIntValue()
public SQLExpr primary()
protected SQLExpr parseAll()
protected SQLExpr parseSome()
protected SQLExpr parseAny()
protected SQLExpr parseInterval()
public SQLSelectParser createSelectParser()
protected SQLExpr parseExtract()
protected SQLExpr parsePosition()
protected SQLExpr parseMatch()
public final void names(Collection<SQLName> exprCol)
public final void names(Collection<SQLName> exprCol, SQLObject parent)
@Deprecated public final void exprList(Collection<SQLExpr> exprCol)
public final void exprList(Collection<SQLExpr> exprCol, SQLObject parent)
public SQLName name()
public boolean isAggreateFunction(String word)
protected boolean isAggreateFunction(long hash_lower)
protected String getAggreateFunction(long hash_lower)
protected SQLAggregateExpr parseAggregateExpr(String methodName)
protected void filter(SQLAggregateExpr aggregateExpr)
protected void over(SQLAggregateExpr aggregateExpr)
protected void over(SQLOver over)
protected SQLAggregateExpr parseAggregateExprRest(SQLAggregateExpr aggregateExpr)
public SQLOrderBy parseOrderBy()
public void orderBy(List<SQLSelectOrderByItem> items, SQLObject parent)
public SQLSelectOrderByItem parseSelectOrderByItem()
public SQLUpdateSetItem parseUpdateSetItem()
public final SQLExpr bitAnd()
public final SQLExpr bitOr()
public final SQLExpr additive()
public final SQLExpr shift()
public SQLExpr and()
public SQLExpr xor()
public SQLExpr or()
public SQLExpr relational()
public SQLDataType parseDataType()
public SQLDataType parseDataType(boolean restrict)
protected SQLDataType parseDataTypeRest(SQLDataType dataType)
protected boolean isCharType(String dataTypeName)
protected boolean isCharType(long hash)
protected SQLDataType parseCharTypeRest(SQLCharacterDataType charType)
public SQLColumnDefinition parseColumn()
public SQLColumnDefinition createColumnDefinition()
public SQLColumnDefinition parseColumnRest(SQLColumnDefinition column)
private SQLColumnReference parseReference()
protected SQLForeignKeyImpl.Option parseReferenceOption()
protected SQLColumnCheck parseColumnCheck()
public SQLPrimaryKey parsePrimaryKey()
public SQLUnique parseUnique()
public void parseAssignItem(List<SQLAssignItem> outList, SQLObject parent)
public SQLAssignItem parseAssignItem()
public List<SQLCommentHint> parseHints()
public void parseHints(List hints)
public SQLConstraint parseConstaint()
public SQLCheck parseCheck()
protected SQLCheck createCheck()
public SQLForeignKeyConstraint parseForeignKey()
protected SQLForeignKeyImpl createForeignKey()
public SQLSelectItem parseSelectItem()
public SQLExpr parseGroupingSet()
protected SQLPartition parsePartition()
protected SQLPartitionBy parsePartitionBy()
public SQLPartitionValue parsePartitionValues()
public SQLLimit parseLimit()
Copyright © 2013–2019 Alibaba Group. All rights reserved.