Package gudusoft.gsqlparser
Enum ETokenType
- All Implemented Interfaces:
Serializable,Comparable<ETokenType>,java.lang.constant.Constable
Type of source token.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionspecial character, ampersand &special character, asterisk *It's a letter, so can be part of identifier @back slash \, ddb2 use \ for multilinecomment like this: /* this is simple comment * /delimited identifier used in SQL Server: {this is delimited identifier}this token was removed via TParseTreeNode.removeAllMyTokensFromTokenListspecial character, caret ^special character, colon :special character, comma ,used in mdxdelimited identifier used in SQL Server: [this is delimited identifier]$, It's a letter, so can be part of identifier.special character, quotation mark/double quote/double quotation mark "delimited identifier: "this is delimited identifier"special character, equals =special character, exclamation mark !special character, greater than >ordinary identifierspecial character, left brace {special character, left bracket [special character, left parenthesis (special character, less than <special character, plus sign -numeric constant#, It's a letter, so can be part of identifier.special character, percent %special character, period .special character, plus sign +special character, question mark ?special character, right brace }special character, right bracket ]special character, right parenthesis )special character, semocolon ;comment like this: -- this is simple commentspecial character, apostrophe/single quote/single quotation mark 'special character, slash /character string constant: 'this is single quote string'tilde ~special character, underscore/underline _special character, vertical bar | -
Method Summary
Modifier and TypeMethodDescriptionstatic ETokenTypeReturns the enum constant of this type with the specified name.static ETokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ttunknown
-
ttreturn
-
ttwhitespace
-
ttsimplecomment
comment like this: -- this is simple comment -
ttbracketedcomment
comment like this: /* this is simple comment * / -
ttnumber
numeric constant -
ttsqstring
character string constant: 'this is single quote string' -
ttdqstring
delimited identifier: "this is delimited identifier" -
ttdbstring
delimited identifier used in SQL Server: [this is delimited identifier] -
ttbrstring
delimited identifier used in SQL Server: {this is delimited identifier} -
ttidentifier
ordinary identifier -
ttkeyword
-
ttnonreservedkeyword
-
ttsemicolon
special character, semocolon ; -
ttcolon
special character, colon : -
ttcomma
special character, comma , -
ttperiod
special character, period . -
ttequals
special character, equals = -
ttquestionmark
special character, question mark ? -
ttplussign
special character, plus sign + -
ttminussign
special character, plus sign - -
ttasterisk
special character, asterisk * -
ttslash
special character, slash / -
ttgreaterthan
special character, greater than > -
ttlessthan
special character, less than < -
ttleftparenthesis
special character, left parenthesis ( -
ttrightparenthesis
special character, right parenthesis ) -
ttleftbracket
special character, left bracket [ -
ttrightbracket
special character, right bracket ] -
ttleftbrace
special character, left brace { -
ttrightbrace
special character, right brace } -
ttcaret
special character, caret ^ -
ttpercent
special character, percent % -
ttampersand
special character, ampersand & -
ttverticalbar
special character, vertical bar | -
ttdoublequote
special character, quotation mark/double quote/double quotation mark " -
ttsinglequote
special character, apostrophe/single quote/single quotation mark ' -
ttexclamationmark
special character, exclamation mark ! -
ttunderscore
special character, underscore/underline _ -
ttatsign
It's a letter, so can be part of identifier @ -
ttdolorsign
$, It's a letter, so can be part of identifier. -
ttnumbersign
#, It's a letter, so can be part of identifier. -
ttbackslash
back slash \, ddb2 use \ for multiline -
tttilde
tilde ~ -
ttunknownchar
-
ttsqlpluscmd
-
ttbindvar
-
ttsqlvar
-
ttsubstitutionvar
-
ttstmt_delimiter
-
ttsinglecharoperator
-
ttmulticharoperator
-
ttconcatenationop
-
ttsemicolon2
-
ttsemicolon3
-
tttokenlizererrortoken
-
ttdecode
-
ttCPPComment
used in mdx -
ttBTEQCmd
this token was removed via TParseTreeNode.removeAllMyTokensFromTokenList -
ttRemoved
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-