ParserUtil
| Methods |
| static int |
getSaveTokenType(String s, boolean functionsAsKeywords)
Get the token type.
|
| static int |
getSaveTokenType(String s, boolean functionsAsKeywords)
Get the token type.
Parameters:
s - the token
functionsAsKeywords - whether "current data / time" functions are keywords
Returns:
the token type
|
| static boolean |
isKeyword(String s)
Checks if this string is a SQL keyword.
|
| static boolean |
isKeyword(String s)
Checks if this string is a SQL keyword.
Parameters:
s - the token to check
Returns:
true if it is a keyword
|
| static boolean |
isSimpleIdentifier(String s, boolean functionsAsKeywords)
Is this a simple identifier (in the JDBC specification sense).
|
| static boolean |
isSimpleIdentifier(String s, boolean functionsAsKeywords)
Is this a simple identifier (in the JDBC specification sense).
Parameters:
s - identifier to check
functionsAsKeywords - treat system functions as keywords
Returns:
is specified identifier may be used without quotes
Throws:
NullPointerException - if s is {@code null}
|
KEYWORD
= 1
A keyword.
IDENTIFIER
= 2
An identifier (table name, column name,...).
NULL
= 3
The token "null".
TRUE
= 4
The token "true".
FALSE
= 5
The token "false".
ROWNUM
= 6
The token "rownum".
|