Package | Description |
---|---|
gudusoft.gsqlparser |
Provides the class
TGSqlParser necessary to create a SQL Parser and the classes a SQL Parser uses
internally to handle different SQL dialects. |
gudusoft.gsqlparser.nodes |
Provides the classes represents various SQL query parse tree node.
|
gudusoft.gsqlparser.pp.print | |
gudusoft.gsqlparser.pp.utils | |
gudusoft.gsqlparser.scriptWriter | |
gudusoft.gsqlparser.stmt |
Provides the classes represent various SQL statements.
|
gudusoft.gsqlparser.stmt.mssql |
Modifier and Type | Field and Description |
---|---|
TSourceTokenList |
TSourceToken.container
Container for this token which is a list of source token, this is the reference to
TGSqlParser.sourcetokenlist |
TSourceTokenList |
TCustomSqlStatement.sourcetokenlist
Source tokens included in this statement.
|
TSourceTokenList |
TCustomParser.sourcetokenlist |
TSourceTokenList |
TGSqlParser.sourcetokenlist
Tokens generated by lexer from the input SQL script.
|
TSourceTokenList |
TLexerMssql.sourcetokens |
Modifier and Type | Method and Description |
---|---|
TSourceTokenList |
TGSqlParser.getSourcetokenlist()
A sequence of source tokens created by the lexer after tokenize the input SQL
|
TSourceTokenList |
TCustomSqlStatement.getTokenList() |
TSourceTokenList |
TSingletonParser.getTokens(EDbVendor dbVendor,
String str) |
TSourceTokenList |
TSourceToken.getTokensAfter()
Used in sql formatter package only.
|
TSourceTokenList |
TSourceToken.getTokensBefore()
Used in sql formatter package only
|
Modifier and Type | Method and Description |
---|---|
boolean |
ITokenListHandle.processTokenList(TSourceTokenList tokenList) |
static void |
TBaseType.resetTokenChain(TSourceTokenList pSourceTokenList,
int startPos) |
Modifier and Type | Method and Description |
---|---|
TSourceTokenList |
TCreateProcedureSqlNode.getFunctionBodyTokenList() |
TSourceTokenList |
TConstant.getStringLiteralSequence()
String list constant in Hive.
|
Modifier and Type | Method and Description |
---|---|
int |
TParseTreeNode.addAllMyTokensToTokenList(TSourceTokenList targetList,
int index)
Deprecated.
since v1.8.8.0, use scriptWriter technology to modify the node
Inserts tokens(from start token to end token ) of this parse tree node at the specified position in this
list. Shifts the element currently at that position (if any) and
any subsequent elements to the right .
|
void |
TParseTreeNode.setEndToken(TSourceTokenList endTokenList) |
void |
TParseTreeNode.setStartToken(TSourceTokenList startTokenList) |
void |
TConstant.setStringLiteralSequence(TSourceTokenList stringLiteralSequence) |
Modifier and Type | Method and Description |
---|---|
void |
TextPrinter.print(TSourceTokenList tl) |
void |
IPrinter.print(TSourceTokenList t)
print the source token list
|
Modifier and Type | Method and Description |
---|---|
static void |
SourceTokenOperator.combineWhitespace(TSourceTokenList list,
int startPos,
int endPos)
combine all the white spaces into a single white space
|
static int |
SourceTokenOperator.curColumnNumberVT(TSourceTokenList list,
int pos)
calcaulate the text length from a given position to the line start.
|
static int |
SourceTokenOperator.curIndentLenVT(TSourceTokenList list,
int pos)
calculate the current indent length VT is the abbr for "virtual token"
(which contains before tokens, after tokens and replace 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 int |
SourceTokenSearcher.indexOf(TSourceTokenList list,
int startPos,
int endPos,
ETokenType type)
search the source token in the source token list from the top
|
static int |
SourceTokenSearcher.indexOf(TSourceTokenList list,
int startPos,
int endPos,
String text)
search the source token in the source token list from the top
|
static int |
SourceTokenSearcher.indexOf(TSourceTokenList list,
int startPos,
String text)
search the source token in the source token list from the top
|
static int |
SourceTokenSearcher.lastIndexOf(TSourceTokenList list,
int startPos,
int endPos,
String text)
search the source token in the source token list from the end
|
static int |
SourceTokenSearcher.lastIndexOf(TSourceTokenList list,
int endPos,
String text)
search the source token in the source token list from the end
|
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.lastSelectedToken(TSourceTokenList list,
int startPos,
int endPos,
String text) |
static void |
SourceTokenOperator.removeWhitespaceAndReturn(GFmtOpt opt,
TSourceTokenList list,
int start,
int end)
remove the white space and the return token
|
static int |
SourceTokenOperator.removeWhitespaceAndReturnFromEnd(GFmtOpt opt,
TSourceTokenList list,
int end)
remove the white space and the return token from the end
|
static int |
SourceTokenOperator.removeWhitespaceAndReturnFromStart(GFmtOpt opt,
TSourceTokenList list,
int startPos)
remove the white space and the return token from the end
|
static int |
SourceTokenOperator.removeWhitespaceBackward(GFmtOpt opt,
TSourceTokenList list,
int end) |
static int |
SourceTokenOperator.textLengthVT(TSourceTokenList list,
int start,
int end)
calculate the text length for all virtual token (which are call before
tokens, after tokens and replace token)
|
Modifier and Type | Method and Description |
---|---|
boolean |
TScriptWriter.verifyTokens(TSourceTokenList originalTokens,
boolean partialChecking) |
Modifier and Type | Method and Description |
---|---|
TSourceTokenList |
TCreateTriggerStmt.getDmlTpyes()
Deprecated.
As of v1.7.2.5, replaced by
ETriggerDmlType |
Modifier and Type | Method and Description |
---|---|
TSourceTokenList |
TMssqlCreateTrigger.getDmlTpyes()
Deprecated.
As of v1.7.2.5, replaced by
ETriggerDmlType |