Modifier and Type | Method and Description |
---|---|
static void |
demo.printNodeEndWithThisToken(TSourceToken st) |
static void |
demo.printNodeStartWithThisToken(TSourceToken st) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TSourceToken.clone() |
TSourceToken |
TSourceTokenList.get(int index) |
TSourceToken |
TSourceToken.getLinkToken()
Gets the linked token.
|
TSourceToken |
TSourceToken.getNextTokenInChain() |
TSourceToken |
TSourceToken.getPrevTokenInChain() |
TSourceToken |
TSourceToken.getReplaceToken()
Used in sql formatter package only
|
TSourceToken |
TSourceTokenList.next() |
TSourceToken |
TSourceToken.nextSolidToken()
The next token whose
tokentype is not ttreturn,ttwhitespace,ttsimplecomment and ttbracketedcomment. |
TSourceToken |
TSourceToken.nextSolidToken(boolean treatCommentAsSolidToken)
The next token whose
tokentype is not ttreturn,ttwhitespace,ttsimplecomment and ttbracketedcomment. |
TSourceToken |
TSourceToken.nextSolidToken(int pstep) |
TSourceToken |
TSourceTokenList.nextsolidtoken(int ptokenpos,
int pstep,
boolean pcmtissolidtoken)
Find solid token start from ptoken, distance is pstep.
|
TSourceToken |
TSourceTokenList.nextsolidtoken(TSourceToken ptoken,
int pstep,
boolean pcmtissolidtoken)
Find solid token start from ptoken, distance is pstep.
|
TSourceToken |
TSourceToken.nextToken() |
TSourceToken |
TSourceToken.prevSolidToken()
The previous token whose
tokentype is not ttreturn,ttwhitespace,ttsimplecomment and ttbracketedcomment. |
TSourceToken |
TSourceToken.prevSolidToken(boolean treatCommentAsSolidToken)
The previous token whose
tokentype is not ttreturn,ttwhitespace,ttsimplecomment and ttbracketedcomment |
TSourceToken |
TSourceToken.searchToken(int targetTokenCode,
int range) |
TSourceToken |
TSourceToken.searchToken(int targetTokenCode,
int range,
int stopTokenCode,
boolean stopAtSemiColon)
Search a token before or after this token in the same source token list.
|
TSourceToken |
TSourceTokenList.searchToken(int targetTokenCode,
String targetTokenText,
TSourceToken startToken,
int range) |
TSourceToken |
TSourceTokenList.searchToken(int targetTokenCode,
String targetTokenText,
TSourceToken startToken,
int range,
int stopTokenCode,
boolean stopAtSemiColon) |
TSourceToken |
TSourceToken.searchToken(String targetTokenText,
int range) |
TSourceToken |
TSourceToken.searchToken(String targetTokenText,
int range,
int stopTokenCode,
boolean stopAtSemiColon)
Search a token before or after this token in the same source token list.
|
TSourceToken |
TSourceToken.searchTokenAfterObjectName()
Search the first non-solid token after the next objectName.
|
TSourceToken |
TSourceToken.searchTokenAtTheEndOfSameLine() |
TSourceToken |
TSourceTokenList.solidtokenbefore(int pStart)
Search solid token before pStart.
|
Modifier and Type | Method and Description |
---|---|
void |
TSourceTokenList.add(int index,
TSourceToken st) |
void |
TSourceTokenList.add(TSourceToken st) |
void |
TSourceToken.appendText(TSourceToken st) |
static void |
TSourceToken.concatInChain(TSourceToken st1,
TSourceToken st2) |
ESqlStatementType |
TSqlCmds.findmssqlcmdusedbyyacc(TSourceToken pcst) |
ESqlStatementType |
TSqlCmds.findsybasecmdusedbyyacc(TSourceToken pcst) |
static List<String> |
TBaseType.getArrayListBetweenTokens(TSourceToken startToken,
TSourceToken endToken,
boolean includeNonSolidToken)
return an array list in text between ( and ), which is start token and end token, like this: ( option1=value1, option2=value2, option3=values )
the result is an array like this:
option1=value1 option2=value2 option3=value3 |
int |
TSourceTokenList.indexOf(TSourceToken pst) |
void |
TSourceToken.insertANewTokenAfterMe(TSourceToken newToken) |
void |
TSourceToken.insertANewTokenBeforeMe(TSourceToken newToken) |
void |
TSourceToken.insertText(TSourceToken st) |
TCustomSqlStatement |
TSqlCmds.issql(TSourceToken pcst,
EDbVendor pdbvendor,
EFindSqlStateType pstate,
TCustomSqlStatement psqlstatement) |
static void |
TBaseType.log(String message,
int type,
TSourceToken token) |
TSourceToken |
TSourceTokenList.nextsolidtoken(TSourceToken ptoken,
int pstep,
boolean pcmtissolidtoken)
Find solid token start from ptoken, distance is pstep.
|
boolean |
ITokenHandle.processToken(TSourceToken st) |
void |
TSourceTokenList.remove(TSourceToken st) |
TSourceToken |
TSourceTokenList.searchToken(int targetTokenCode,
String targetTokenText,
TSourceToken startToken,
int range) |
TSourceToken |
TSourceTokenList.searchToken(int targetTokenCode,
String targetTokenText,
TSourceToken startToken,
int range,
int stopTokenCode,
boolean stopAtSemiColon) |
void |
TSourceTokenList.set(int index,
TSourceToken st) |
void |
TSourceToken.setLinkToken(TSourceToken linkToken)
Create a link between two tokens.
|
void |
TSourceToken.setNextTokenInChain(TSourceToken nextTokenInChain) |
void |
TSourceToken.setPrevTokenInChain(TSourceToken prevTokenInChain) |
void |
TSourceToken.setReplaceToken(TSourceToken replaceToken)
Used in sql formatter package only
|
void |
TCustomLexer.setTokenTableValue(TSourceToken token) |
Constructor and Description |
---|
TSyntaxError(TSourceToken pSt,
String hint,
EErrorType errortype,
int errorno,
TCustomSqlStatement sql) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
Transform.getEndToken() |
TSourceToken |
Transform.getStartToken() |
Modifier and Type | Method and Description |
---|---|
void |
Transform.setEndToken(TSourceToken endToken) |
void |
Transform.setStartToken(TSourceToken startToken) |
Modifier and Type | Field and Description |
---|---|
TSourceToken |
TTableReference.sourcetoken |
TSourceToken |
TColumnReference.sourcetoken |
TSourceToken |
TDummy.st1 |
TSourceToken |
TDummy.st2 |
TSourceToken |
TDummy.st3 |
Modifier and Type | Field and Description |
---|---|
ArrayList<TSourceToken> |
TDummy.tokens |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TExpression.getAndOrTokenBeforeExpr() |
TSourceToken |
TAliasClause.getAsToken() |
TSourceToken |
TObjectName.getAtsign() |
TSourceToken |
TConstant.getBind1() |
TSourceToken |
TConstant.getBind2() |
TSourceToken |
TTrimArgument.getBoth_trailing_leading() |
TSourceToken |
TGroupBy.getBY() |
TSourceToken |
TCollectStatisticsSqlNode.getColumn_or_index() |
TSourceToken |
TObjectName.getColumnToken()
It's the same as
TObjectName.getPartToken() if TObjectName.getDbObjectType() is EDbObjectType.column |
TSourceToken |
TObjectName.getCommentString() |
TSourceToken |
TCreateTableOption.getCommentToken()
Deprecated.
since v 2.8.1.1, please use
TCreateTableOption.getComment() instead |
TSourceToken |
TExpression.getComparisonOperator() |
TSourceToken |
TCreateDatabaseSqlNode.getDatabase() |
TSourceToken |
TObjectName.getDatabaseToken()
The database part of this objectName: [server.][database.][schema.]object
|
TSourceToken |
TCreateTableOption.getDateRetentionInDays() |
TSourceToken |
TDeleteSqlNode.getDeleteToken() |
TSourceToken |
TDescribeSqlNode.getDescToken() |
TSourceToken |
TDropSchemaSqlNode.getDropBehavior() |
TSourceToken |
TPTNodeList.getEndToken() |
TSourceToken |
TResultColumnList.getEndToken() |
TSourceToken |
TParseTreeNodeList.getEndToken() |
TSourceToken |
TJoinList.getEndToken() |
TSourceToken |
TIndirection.getEndToken() |
TSourceToken |
TParseTreeNode.getEndToken()
The last token of the node
|
TSourceToken |
TObjectName.getExclamationmark() |
TSourceToken |
TFunctionCall.getExtract_time_token()
one of the YEAR/MONTH/DAY, HOUR/MINUTE/SECOND keywords in extract function
|
TSourceToken |
TCopySqlNode.getFilename() |
TSourceToken |
TIntoClause.getFilename() |
TSourceToken |
TKeepDenseRankClause.getFirstLast() |
TSourceToken |
TExpression.getFractionalSecondsPrecision() |
TSourceToken |
TConstant.getFractionalSecondsPrecision()
the number of digits in the fractional part of the SECOND datetime field in a interval day to second constant.
|
TSourceToken |
TGroupBy.getGROUP() |
TSourceToken |
TGroupBy.getHAVING() |
TSourceToken |
TInsertSqlNode.getIgnore() |
TSourceToken |
TConstant.getIndicator() |
TSourceToken |
TInsertSqlNode.getInsertToken() |
TSourceToken |
TExpression.getLeadingPrecision() |
TSourceToken |
TConstant.getLeadingPrecision()
the maximum number of digits in the leading field of a interval constant.
|
TSourceToken |
TExecuteAsSqlNode.getLoginToken() |
TSourceToken |
TObjectName.getMethodToken() |
TSourceToken |
TAlterTableOption.getMySQLIndexTypeToken()
MySQL, unique, fulltext or spatial keyword used in add key/index clause when option type is
EAlterTableOptionType.AddConstraintIndex |
TSourceToken |
TExecuteAsSqlNode.getNameToken() |
TSourceToken |
TExpression.getNotToken() |
TSourceToken |
TObjectName.getObjectToken()
The object part of this objectName such as table name, view name.
|
TSourceToken |
TColumnReference.getObjectToken() |
TSourceToken |
TRelationExpr.getOnly() |
TSourceToken |
TExpression.getOperatorToken()
Operator token used in expression such as +,-,*,/ and etc
|
TSourceToken |
TCreateTableSqlNode.getOptionEndParenthesis() |
TSourceToken |
TCreateTableSqlNode.getOptionStartParenthesis() |
TSourceToken |
TObjectName.getPackageToken()
Oracle package name
|
TSourceToken |
TObjectName.getPartToken()
The column name of this objectName if
TObjectName.getDbObjectType() is EDbObjectType.column . |
TSourceToken |
TTableSample.getPercent() |
TSourceToken |
TInsertSqlNode.getPriority_delayed() |
TSourceToken |
TObjectName.getPropertyToken() |
TSourceToken |
TExpression.getQuantifier()
one of the following quantifier keywords: SOME, ANY, ALL
|
TSourceToken |
TOpenQuery.getQueryToken() |
TSourceToken |
TPathSqlNode.getRootDirectory() |
TSourceToken |
TUnloadSqlNode.getS3() |
TSourceToken |
TObjectName.getSchemaToken()
The schema name of this objectName.
|
TSourceToken |
TUnloadSqlNode.getSelectStmt() |
TSourceToken |
TSelectSqlNode.getSelectToken() |
TSourceToken |
TObjectName.getServerToken()
The server part of this objectName: [server.][database.][schema.]object
|
TSourceToken |
TConstant.getSign()
The '+' or '-' before this constant.
|
TSourceToken |
TConstant.getSignToken() |
TSourceToken |
TExpression.getSourcetokenOperand() |
TSourceToken |
TPTNodeList.getStartToken() |
TSourceToken |
TResultColumnList.getStartToken()
In teradata, the whole result column can be null, so this result column
should be ingored when get start token in result column list.
|
TSourceToken |
TParseTreeNodeList.getStartToken() |
TSourceToken |
TIndirection.getStartToken() |
TSourceToken |
TParseTreeNode.getStartToken()
The first token in this parse tree node
|
TSourceToken |
TCreateViewSqlNode.getStForce() |
TSourceToken |
TCreateViewSqlNode.getStReplace() |
TSourceToken |
TOpenDatasource.getTableToken() |
TSourceToken |
TObjectName.getTableToken()
The table name of this objectName, it's the same value as
TObjectName.getObjectToken() if TObjectName.getDbObjectType()
is EDbObjectType.table |
TSourceToken |
TMySQLIndexStorageType.getTypeToken() |
TSourceToken |
TUpdateSqlNode.getUpdateToken() |
TSourceToken |
TConstant.getValueToken()
The value of this constant represented by a source token.
|
TSourceToken |
TColumnDefinition.getXmlTableColumnPath()
Oracle, path of xml table column
|
TSourceToken |
TXmlTableParameter.getXQueryString() |
TSourceToken |
TParseTreeNode.next() |
Modifier and Type | Method and Description |
---|---|
ArrayList<TSourceToken> |
TConstant.getIntervalValueTokens() |
ArrayList<TSourceToken> |
TExpression.getOperatorTokens()
Operator token used in expression which contains multiple operator tokens such as SIMILAR TO , IS DISTINCT FROM and etc
added since v3.0.8.6
|
Modifier and Type | Method and Description |
---|---|
void |
TCreateTableSqlNode.addTableOptionByToken(TSourceToken st,
ECreateTableOption createTableOption) |
void |
TParseTreeNode.addToTokenChain(TSourceToken anchorToken,
boolean beforeAnchorToken) |
void |
TAlterTableOption.adjustOptionByToken(TSourceToken st) |
TColumnReference |
TNodeFactory.createColumnReference(TSourceToken objectname) |
TParseTreeNode |
TNodeFactory.createConstant(TSourceToken st,
ENodeType ent) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TExpression pLeft,
TExpression pRight) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TObjectName pLeft,
TConstant pRight) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TObjectName pLeft,
TObjectName pRight) |
TObjectName |
TNodeFactory.createObjectName(EDbObjectType dbObjectType,
TSourceToken schema,
TSourceToken object,
TSourceToken part) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2,
TSourceToken token3) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2,
TSourceToken token3,
TSourceToken token4) |
TObjectName |
TNodeFactory.createObjectName(TSourceToken schema,
TSourceToken object,
TSourceToken part)
create a database object with schema, object and part name, type of this object will be
determined later in the context where it appears.
|
TObjectName |
TNodeFactory.createObjectNameWithObject(TSourceToken object) |
TObjectName |
TNodeFactory.createObjectNameWithPart(TSourceToken part) |
TObjectName |
TNodeFactory.createObjectNameWithPartAndObject(TSourceToken object,
TSourceToken part) |
TObjectName |
TNodeFactory.createObjectNameWithType(EDbObjectType dbObjectType,
TSourceToken part) |
TObjectName |
TNodeFactory.createObjectNameWithType(EDbObjectType dbObjectType,
TSourceToken object,
TSourceToken part) |
TObjectName |
TNodeFactory.createObjectNameWithType(EDbObjectType dbObjectType,
TSourceToken schema,
TSourceToken object,
TSourceToken part) |
TParseTreeNode |
TNodeFactory.createSimpleExpression(TSourceToken st) |
static EAlterTableOptionType |
TAlterTableOption.getAlterTableOptionTypeByToken(TSourceToken st) |
static EComparisonType |
TExpression.getComparisonType(TSourceToken comparisonOperator) |
static EDeclareType |
TDeclareSqlNode.getDeclareTypeByToken(TSourceToken st) |
void |
TParseTreeNode.insertAfterAToken(TSourceToken anchorToken) |
boolean |
TObjectName.isAttributeNameInObjectName(TSourceToken leftparen,
TSourceToken rightparen) |
protected int |
TParseTreeNode.removeAllMyTokensFromTokenList(TSourceToken additionalToken)
Deprecated.
since v1.8.8.0, use scriptWriter technology to modify the node
|
static void |
TParseTreeNode.removeTokensBetweenToken(TSourceToken startToken,
TSourceToken endToken)
both begin and end token will be removed from the chain
|
static EDataTypeAttribute |
TDatatypeAttribute.searchDataTypeAttributeByName(TSourceToken st1,
TSourceToken st2) |
void |
TAliasClause.setAsToken(TSourceToken asToken) |
void |
TObjectName.setAtsign(TSourceToken atsign) |
void |
TConstant.setBind1(TSourceToken bind1) |
void |
TConstant.setBind2(TSourceToken bind2) |
void |
TGroupBy.setBY(TSourceToken BY) |
void |
TTypeName.setCharsetNameByToken(TSourceToken st) |
void |
TTypeName.setCharUnit(TSourceToken st) |
void |
TCreateFunctionSqlNode.setClassNameByToken(TSourceToken st) |
void |
TCreateIndexSqlNode.setClusteredToken(TSourceToken st) |
void |
TConstraint.setClusteredToken(TSourceToken clusteredToken) |
void |
TColumnDefinition.setColumnPath(TSourceToken columnPath) |
void |
TObjectName.setCommentString(TSourceToken commentString) |
void |
TCreateTableOption.setCommentToken(TSourceToken commentToken) |
void |
TExpression.setComparisonOperator(TSourceToken comparisonOperator) |
void |
TCreateDatabaseSqlNode.setDatabase(TSourceToken database) |
void |
TOpenDatasource.setDatabaseToken(TSourceToken databaseToken) |
void |
TObjectName.setDatabaseToken(TSourceToken databaseToken) |
void |
TObjectName.setDatabaseToken(TSourceToken databaseToken,
boolean implicit) |
void |
TFileFormatSqlNode.setDataCompressionByToken(TSourceToken st) |
void |
TTypeName.setDataTypeByToken(TSourceToken st) |
void |
TCreateTableOption.setDateRetentionInDays(TSourceToken dateRetentionInDays) |
void |
TDeleteSqlNode.setDeleteToken(TSourceToken deleteToken) |
void |
TDescribeSqlNode.setDescToken(TSourceToken descToken) |
void |
TDropSchemaSqlNode.setDropBehavior(TSourceToken dropBehavior) |
void |
TDropTableSqlNode.setDropBehavior(TSourceToken st) |
void |
TAlterTableOption.setDropRestrictType(TSourceToken st) |
void |
TDropIndexSqlNode.setDropRestrictType(TSourceToken st) |
void |
TCreateTableOption.setEncoding(TSourceToken encoding) |
void |
TParseTreeNode.setEndToken(TSourceToken newEndToken) |
void |
TParseTreeNode.setEndTokenDirectly(TSourceToken newEndToken) |
void |
TObjectName.setExclamationmark(TSourceToken exclamationmark) |
void |
TFunctionCall.setExtract_time_token(TSourceToken extract_time_token)
set one of the YEAR/MONTH/DAY, HOUR/MINUTE/SECOND keyword in extract function
|
void |
TFileFormatSqlNode.setFileFormatByToken(TSourceToken st) |
void |
TCreateTableOption.setFileFormatName(TSourceToken fileFormatName) |
void |
TCreateTableOption.setFileFormatType(TSourceToken fileFormatType) |
void |
TExpression.setFractionalSecondsPrecision(TSourceToken fractionalSecondsPrecision) |
void |
TConstant.setFractionalSecondsPrecision(TSourceToken fractionalSecondsPrecision)
set the fractional precision which is the number of digits in the fractional part of the SECOND datetime field
in a interval day to second constant.
|
void |
TGroupBy.setGROUP(TSourceToken GROUP) |
void |
TGroupBy.setHAVING(TSourceToken HAVING) |
void |
TInsertSqlNode.setIgnore(TSourceToken ignore) |
void |
TCreateIndexSqlNode.setIndexTypeViaToken(TSourceToken st) |
void |
TConstant.setIndicator(TSourceToken indicator) |
void |
TInsertSqlNode.setInsertAllOrFirst(TSourceToken st) |
void |
TInsertSqlNode.setInsertToken(TSourceToken insertToken) |
void |
TExpression.setLeadingPrecision(TSourceToken leadingPrecision) |
void |
TConstant.setLeadingPrecision(TSourceToken leadingPrecision)
set the precision which is the maximum number of digits in the leading field of a interval constant.
|
void |
TExpression.setLeftUnary(TSourceToken st) |
void |
TConstant.setLiteralType(TSourceToken st) |
void |
TObjectName.setMethodToken(TSourceToken methodToken) |
void |
TAlterTableOption.setMySQLIndexTypeToken(TSourceToken mySQLIndexTypeToken) |
void |
TExpression.setNotToken(TSourceToken notToken) |
void |
TOrderByItem.setNullOrder(TSourceToken nullOrder) |
void |
TObjectName.setObjectToken(TSourceToken objectToken) |
void |
TRelationExpr.setOnly(TSourceToken only) |
void |
TExpression.setOperatorToken(TSourceToken operatorToken) |
void |
TCreateTableSqlNode.setOptionEndParenthesis(TSourceToken optionEndParenthesis) |
void |
TCreateTableSqlNode.setOptionStartParenthesis(TSourceToken optionStartParenthesis) |
void |
TInsertSqlNode.setOverwrite(TSourceToken overwrite) |
void |
TObjectName.setPackageToken(TSourceToken packageToken) |
void |
TObjectName.setPartToken(TSourceToken partToken) |
void |
TJsonTable.setPath(TSourceToken path) |
void |
TInsertSqlNode.setPriority_delayed(TSourceToken priority_delayed) |
void |
TObjectName.setPropertyToken(TSourceToken propertyToken) |
void |
TExpression.setQuantifier(TSourceToken quantifier) |
void |
TCreateTableSqlNode.setReadWritableByToken(TSourceToken st) |
void |
TCreateViewSqlNode.setRecursive(TSourceToken st) |
void |
TExpression.setRightUnary(TSourceToken st) |
void |
TOpenDatasource.setSchemaToken(TSourceToken schemaToken) |
void |
TObjectName.setSchemaToken(TSourceToken schemaToken) |
void |
TObjectName.setSchemaToken(TSourceToken schemaToken,
boolean implicit) |
void |
TCreateViewSqlNode.setSecure(TSourceToken st) |
void |
TSelectSqlNode.setSelectToken(TSourceToken selectToken) |
void |
TObjectName.setServerToken(TSourceToken serverToken) |
void |
TSelectSqlNode.setSetOperator(TSourceToken st1,
TSourceToken st2) |
void |
TConstant.setSign(TSourceToken sign)
The '+' or '-' before this constant.
|
void |
TConstant.setSignToken(TSourceToken signToken) |
void |
TOrderByItem.setSortTypeByToken(TSourceToken st) |
void |
TExpression.setSourcetokenOperand(TSourceToken sourcetokenOperand) |
void |
TParseTreeNode.setStartToken(TSourceToken newStartToken) |
void |
TParseTreeNode.setStartTokenDirectly(TSourceToken newStartToken) |
void |
TCreateViewSqlNode.setStForce(TSourceToken stForce) |
void |
TCreateViewSqlNode.setStReplace(TSourceToken stReplace) |
void |
TCreateTableSqlNode.setTableKindByToken(TSourceToken st) |
void |
TFromTable.setTableonly(TSourceToken tableonly) |
void |
TOpenDatasource.setTableToken(TSourceToken tableToken) |
void |
TUpdateSqlNode.setUpdateToken(TSourceToken updateToken) |
void |
TConstant.setValueToken(TSourceToken valueToken)
set value of this constant
|
void |
TTypeName.setVarying(TSourceToken st) |
void |
TColumnDefinition.setXmlTableColumnPath(TSourceToken xmlTableColumnPath) |
Modifier and Type | Method and Description |
---|---|
void |
TDummy.addTokens(ArrayList<TSourceToken> tokens) |
Constructor and Description |
---|
TConstant(ELiteralType literalType,
TSourceToken valueToken)
Class constructor, set the type and value of this constant when creating a new instance of the constant
|
TConstant(ELiteralType literalType,
TSourceToken valueToken,
EIntervalType intervalType)
Class constructor, set the type and value of this constant when creating a new instance of the constant.
|
Modifier and Type | Method and Description |
---|---|
TSourceToken |
THiveDropDBSqlNode.getDatabaseToken() |
TSourceToken |
THiveTerminatedIdentifier.getEscapeString() |
TSourceToken |
THiveKeyValueProperty.getKeyString() |
TSourceToken |
THiveDropDBSqlNode.getRestrictCascadeToken() |
TSourceToken |
THiveRecordWriter.getStringLiteral() |
TSourceToken |
THiveRecordReader.getStringLiteral() |
TSourceToken |
THiveShowGrantSqlNode.getTableToken() |
TSourceToken |
THiveGrantSqlNode.getTableToken() |
TSourceToken |
THiveTerminatedIdentifier.getTerminateString() |
TSourceToken |
THiveTransformClause.getUsingString() |
TSourceToken |
THiveKeyValueProperty.getValueString() |
Modifier and Type | Method and Description |
---|---|
void |
THiveDescribeSqlNode.setDescOption(TSourceToken token) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TMdxFloatConstNode.getDoubleToken() |
TSourceToken |
TMdxIntegerConstNode.getIntToken() |
TSourceToken |
TMdxAxisNode.getName_OR_Number()
Depreciated since v1.9.8.0, replaced by
TMdxAxisNode.getAxis() |
TSourceToken |
TMdxBinOpNode.getOperator() |
TSourceToken |
TMdxUnaryOpNode.getOperator() |
TSourceToken |
TMdxStringConstNode.getStringToken() |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TMssqlCreateTriggerUpdateColumn.getAnd_or_nullToken() |
TSourceToken |
TMssqlCreateTriggerUpdateColumn.getNotToken() |
TSourceToken |
TCopyIntoSqlNode.getOptionEndParenthesis() |
TSourceToken |
TCopyIntoSqlNode.getOptionStartParenthesis() |
Modifier and Type | Method and Description |
---|---|
static TCreatePartitionFunctionStmt.PartitionRangeType |
TCreatePartitionFunctionSqlNode.getPartitionRangeType(TSourceToken token) |
void |
TMssqlCreateTypeSqlNode.setNullNotNull(TSourceToken st) |
void |
TCopyIntoSqlNode.setOptionEndParenthesis(TSourceToken optionEndParenthesis) |
void |
TCopyIntoSqlNode.setOptionStartParenthesis(TSourceToken optionStartParenthesis) |
void |
TDisableEnableTriggerSqlNode.setSqlStatementTypeByToken(TSourceToken st) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TGroupConcatParam.getSeparatorToken() |
Modifier and Type | Method and Description |
---|---|
void |
TGroupConcatParam.setSeparatorToken(TSourceToken separatorToken) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TOracleCacheClause.getCacheToken() |
TSourceToken |
TSegmentAttributesItem.getLoggingToken()
Deprecated.
since v1.9.5.9. Use
TSegmentAttributesItem.getLoggingClause() instead |
TSourceToken |
TStorageItem.getNullToken() |
TSourceToken |
TErrorLoggingClause.getRejectLimitToken() |
TSourceToken |
TSizeClause.getSizeUnit() |
TSourceToken |
TStorageItem.getUnlimitedToken() |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TTeradataLockClause.getDatabase_table_view() |
TSourceToken |
TTeradataLockClause.getLockMode() |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
KeywordAlignMediator.IndentLevelItem.getToken() |
Modifier and Type | Method and Description |
---|---|
void |
KeywordAlignMediator.addIndentLevelItem(TSourceToken token,
int curIndentLen)
save the sourceotoken indent information for current indent level
|
void |
KeywordAlignMediator.IndentLevelItem.setToken(TSourceToken token) |
Constructor and Description |
---|
IndentLevelItem(int level,
int indentLen,
TSourceToken token) |
Modifier and Type | Method and Description |
---|---|
String |
OutputConfig.renderHighlightingElement(TSourceToken token) |
Modifier and Type | Method and Description |
---|---|
String |
HtmlOutputConfig.renderHighlightingElement(TSourceToken token) |
String |
HtmlRenderUtil.renderToken(TSourceToken token) |
Modifier and Type | Method and Description |
---|---|
void |
TextPrinter.print(TSourceToken t) |
void |
IPrinter.print(TSourceToken t)
print the source token
|
Modifier and Type | Method and Description |
---|---|
static void |
ExpressionProcessor.processParenthesesNodeInSubQuery(GFmtOpt option,
TCustomSqlStatement sql,
TSourceToken leftParenthesis,
TSourceToken rightParenthsis) |
Modifier and Type | Method and Description |
---|---|
static TSourceToken |
JoinOnProcessor.getBeginJoinToken(TJoinItem lcitem) |
Modifier and Type | Method and Description |
---|---|
static boolean |
FormatterFactory.isNotNeedFormat(TSourceToken t) |
static void |
FormatterFactory.processBlockStmt(GFmtOpt opt,
TMssqlBlock stmt,
TSourceToken ifToken) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
AllStmtsFormatter.SourceTokenVisitor.visit(TSourceToken token) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
AllStmtsFormatter.SourceTokenVisitor.visit(TSourceToken token) |
Modifier and Type | Field and Description |
---|---|
static TSourceToken |
SourceTokenConstant.EMPTY
empty source token
|
static TSourceToken |
SourceTokenConstant.RETURN2
return source token
|
static TSourceToken |
SourceTokenConstant.WHITESPACE
space source token
|
Modifier and Type | Method and Description |
---|---|
static TSourceToken |
SourceTokenSearcher.backforwardSearch(TSourceToken token,
int backsearchSize,
String text)
backward search the source token
|
static TSourceToken |
SourceTokenSearcher.backforwardSearchNotWhitespaceAndReturnToken(TSourceToken endToken,
int backforwardSearchSize,
String text) |
static TSourceToken |
SourceTokenOperator.createNoFormatFlagToken() |
static TSourceToken |
SourceTokenOperator.createReturnSourceToken() |
static TSourceToken |
SourceTokenOperator.createWhitespaceSourceToken(int length)
create the white space source token
|
static TSourceToken |
SourceTokenSearcher.firstNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
get first token which is not whitespace and return token
|
static TSourceToken |
SourceTokenSearcher.firstSelectedToken(TSourceTokenList list,
int startPos,
int endPos,
String text) |
static TSourceToken |
SourceTokenSearcher.firstSelectNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
String text)
forward search the token which is the first not whitespace or return
token, and its value is a fixed text
|
static TSourceToken |
SourceTokenSearcher.forwardSearch(TSourceToken token,
int forwardSearchSize,
String text)
forward search the source token
|
static TSourceToken |
SourceTokenSearcher.lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos)
get last token which is not whitespace and return token
|
static TSourceToken |
SourceTokenSearcher.lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
get last token which is not whitespace and return token
|
static TSourceToken |
SourceTokenSearcher.lastSelectedNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos,
String text)
backward search the token which is the first not whitespace or return
token, and its value is a fixed text
|
static TSourceToken |
SourceTokenSearcher.lastSelectedNotWhitespaceAndReturnToken(TSourceToken token,
String text)
backward search the token which is the first not whitespace or return
token, and its value is a fixed text
|
static TSourceToken |
SourceTokenSearcher.lastSelectedToken(TSourceTokenList list,
int startPos,
int endPos,
String text) |
Modifier and Type | Method and Description |
---|---|
static void |
SourceTokenOperator.addAfter(GFmtOpt opt,
TSourceToken targetToken,
TSourceToken needAddToken) |
static void |
SourceTokenOperator.addBefore(GFmtOpt opt,
TSourceToken targetToken,
TSourceToken needAddToken)
insert the source token before the target source token
|
static TSourceToken |
SourceTokenSearcher.backforwardSearch(TSourceToken token,
int backsearchSize,
String text)
backward search the source token
|
static TSourceToken |
SourceTokenSearcher.backforwardSearchNotWhitespaceAndReturnToken(TSourceToken endToken,
int backforwardSearchSize,
String text) |
static int |
SourceTokenOperator.curColumnNumberVT(TSourceToken token)
calcaulate the text length from a given position to the line start.
|
static int |
SourceTokenOperator.curIndentLenVT(TSourceToken token)
calculate the current indent length VT is the abbr for "virtual token"
(which contains before tokens, after tokens and replace token)
|
static TSourceToken |
SourceTokenSearcher.forwardSearch(TSourceToken token,
int forwardSearchSize,
String text)
forward search the source token
|
static boolean |
SourceTokenSearcher.isNewLineToken(TSourceToken token) |
static boolean |
SourceTokenSearcher.isSimpleComment(TSourceToken token) |
static TSourceToken |
SourceTokenSearcher.lastSelectedNotWhitespaceAndReturnToken(TSourceToken token,
String text)
backward search the token which is the first not whitespace or return
token, and its value is a fixed text
|
static void |
SourceTokenOperator.removeAllBeforeTokenVT(GFmtOpt opt,
TSourceToken targetToken)
remove all source token in the before source token list VT is the abbr
for "virtual token" (that this method will operates before tokens, after
tokens and replace token)
|
static void |
SourceTokenOperator.removeThisToken(TSourceToken token) |
static void |
SourceTokenOperator.removeWhitespaceAndReturnFormBeforeAndAfter(GFmtOpt opt,
TSourceToken token)
remove the white space and the return token before this token and after
this token
|
static int |
SourceTokenOperator.removeWhitespaceAndReturnFromEnd(GFmtOpt opt,
TSourceToken token)
remove the white space and the return token from the end
|
Modifier and Type | Method and Description |
---|---|
void |
TScriptWriter.addComparisonOperator(EComparisonType comparisonType,
TSourceToken defaultSymbolToken) |
void |
TScriptWriter.addToken(TSourceToken st) |
Modifier and Type | Method and Description |
---|---|
void |
TScriptWriter.addComparisonOperatorByTokens(ArrayList<TSourceToken> tokens) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TCreateDatabaseSqlStatement.getDatabase() |
TSourceToken |
TDeleteSqlStatement.getDeleteToken()
DELETE keyword of the delete statement.
|
TSourceToken |
TDescribeStmt.getDescToken() |
TSourceToken |
TDropSchemaSqlStatement.getDropBehavior() |
TSourceToken |
TSelectSqlStatement.getEndToken() |
TSourceToken |
TInsertSqlStatement.getIgnore()
IGNORE keyword used in the insert statement.
|
TSourceToken |
TInsertSqlStatement.getInsertToken()
INSERT keyword
|
TSourceToken |
TInsertSqlStatement.getPriority_delayed()
DELAY, LOW_PRIORITY, HIGH_PRIORITY keyword used in insert statement.
|
TSourceToken |
TSelectSqlStatement.getSelectToken() |
TSourceToken |
TCreateViewSqlStatement.getStForce() |
TSourceToken |
TCreateViewSqlStatement.getStReplace() |
TSourceToken |
TUpdateSqlStatement.getUpdateToken()
UPDATE keyword
|
Modifier and Type | Method and Description |
---|---|
void |
TDeleteSqlStatement.setDeleteToken(TSourceToken deleteToken) |
void |
TInsertSqlStatement.setInsertToken(TSourceToken insertToken) |
void |
TSelectSqlStatement.setSelectToken(TSourceToken selectToken) |
void |
TCreateViewSqlStatement.setStForce(TSourceToken stForce) |
void |
TCreateViewSqlStatement.setStReplace(TSourceToken stReplace) |
void |
TUpdateSqlStatement.setUpdateToken(TSourceToken updateToken) |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
THiveDropDatabase.getDatabaseToken() |
TSourceToken |
THiveDropDatabase.getRestrictCascadeToken() |
TSourceToken |
THiveRevoke.getTableToken() |
TSourceToken |
THiveShowGrant.getTableToken() |
TSourceToken |
THiveGrant.getTableToken() |
Modifier and Type | Method and Description |
---|---|
TSourceToken |
TMssqlRollback.getTrans_or_work() |
TSourceToken |
TMssqlCommit.getTrans_or_work() |
TSourceToken |
TMssqlSaveTran.getTrans_or_work() |
Modifier and Type | Method and Description |
---|---|
static ESqlPlusCmd |
TSqlplusCmdStatement.searchCmd(String cmdStr,
TSourceToken nextToken) |
Modifier and Type | Method and Description |
---|---|
static BteqCmdType |
BteqCmdType.searchBteqCmd(TSourceToken token) |