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,
DbType dbType) |
SQLExprParser(String sql) |
SQLExprParser(String sql,
DbType dbType,
SQLParserFeature... features) |
acceptIdentifier, acceptInteger, alias, as, config, getDbType, getLexer, getTimeZone, identifierEquals, isEnabled, match, newCreateStatement, printError, setErrorEndPos, setTimeZone, 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(String sql, DbType dbType, SQLParserFeature... features)
public SQLExprParser(Lexer lexer)
public void setAllowIdentifierMethod(boolean allowIdentifierMethod)
public SQLExpr expr()
public final SQLExpr bitXor()
public final SQLExpr multiplicative()
public SQLIntegerExpr integerExpr()
public SQLCharExpr charExpr()
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 SQLIdentifierExpr identifier()
public SQLName name()
public boolean isAggregateFunction(String word)
protected boolean isAggregateFunction(long hash_lower)
protected String getAggregateFunction(long hash_lower)
protected SQLAggregateExpr parseAggregateExpr(String methodName)
protected void filter(SQLAggregateExpr x)
protected void over(SQLAggregateExpr aggregateExpr)
protected void over(SQLOver over)
protected SQLOver.WindowingBound parseWindowingBound()
protected SQLAggregateExpr parseAggregateExprRest(SQLAggregateExpr aggregateExpr)
public SQLOrderBy parseOrderBy()
public SQLOrderBy parseDistributeBy()
public SQLOrderBy parseSortBy()
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 void parseQueryPlanHint(SQLExpr expr)
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 parseColumn(SQLObject parent)
public SQLColumnDefinition createColumnDefinition()
public SQLColumnDefinition parseColumnRest(SQLColumnDefinition column)
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 SQLAssignItem parseAssignItem(boolean variant)
public List<SQLCommentHint> parseHints()
public void parseHints(List hints)
public SQLCommentHint parseHint()
public void parseIndex(SQLIndexDefinition indexDefinition)
public SQLConstraint parseConstaint()
public SQLCheck parseCheck()
public SQLDefault parseDefault()
protected SQLCheck createCheck()
public SQLForeignKeyConstraint parseForeignKey()
protected SQLForeignKeyImpl createForeignKey()
public SQLSelectItem parseSelectItem()
protected SQLPartition parsePartition()
public SQLPartitionSpec parsePartitionSpec()
protected SQLPartitionBy parsePartitionBy()
public SQLExpr parseGroupingSet()
public SQLPartitionValue parsePartitionValues()
public SQLLimit parseLimit()
public void parseIndexRest(SQLIndex idx)
public SQLExternalRecordFormat parseRowFormat()
Copyright © 2013–2023. All rights reserved.