public class ParserUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
_ROWID_
The token "_ROWID_".
|
static int |
ALL
The token "ALL".
|
static int |
ARRAY
The token "ARRAY".
|
static int |
CASE
The token "CASE".
|
static int |
CHECK
The token "CHECK".
|
static int |
CONSTRAINT
The token "CONSTRAINT".
|
static int |
CROSS
The token "CROSS".
|
static int |
CURRENT_DATE
The token "CURRENT_DATE".
|
static int |
CURRENT_TIME
The token "CURRENT_TIME".
|
static int |
CURRENT_TIMESTAMP
The token "CURRENT_TIMESTAMP".
|
static int |
CURRENT_USER
The token "CURRENT_USER".
|
static int |
DISTINCT
The token "DISTINCT".
|
static int |
EXCEPT
The token "EXCEPT".
|
static int |
EXISTS
The token "EXISTS".
|
static int |
FALSE
The token "FALSE".
|
static int |
FETCH
The token "FETCH".
|
static int |
FOR
The token "FOR".
|
static int |
FOREIGN
The token "FOREIGN".
|
static int |
FROM
The token "FROM".
|
static int |
FULL
The token "FULL".
|
static int |
GROUP
The token "GROUP".
|
static int |
HAVING
The token "HAVING".
|
static int |
IDENTIFIER
An identifier (table name, column name,...).
|
static int |
IF
The token "IF".
|
static int |
INNER
The token "INNER".
|
static int |
INTERSECT
The token "INTERSECT".
|
static int |
INTERSECTS
The token "INTERSECTS".
|
static int |
INTERVAL
The token "INTERVAL".
|
static int |
IS
The token "IS".
|
static int |
JOIN
The token "JOIN".
|
static int |
KEYWORD
A keyword.
|
static int |
LIKE
The token "LIKE".
|
static int |
LIMIT
The token "LIMIT".
|
static int |
LOCALTIME
The token "LOCALTIME".
|
static int |
LOCALTIMESTAMP
The token "LOCALTIMESTAMP".
|
static int |
MINUS
The token "MINUS".
|
static int |
NATURAL
The token "NATURAL".
|
static int |
NOT
The token "NOT".
|
static int |
NULL
The token "NULL".
|
static int |
OFFSET
The token "OFFSET".
|
static int |
ON
The token "ON".
|
static int |
ORDER
The token "ORDER".
|
static int |
PRIMARY
The token "PRIMARY".
|
static int |
QUALIFY
The token "QUALIFY".
|
static int |
ROW
The token "ROW".
|
static int |
ROWNUM
The token "ROWNUM".
|
static int |
SELECT
The token "SELECT".
|
static int |
TABLE
The token "TABLE".
|
static int |
TRUE
The token "TRUE".
|
static int |
UNION
The token "UNION".
|
static int |
UNIQUE
The token "UNIQUE".
|
static int |
VALUES
The token "VALUES".
|
static int |
WHERE
The token "WHERE".
|
static int |
WINDOW
The token "WINDOW".
|
static int |
WITH
The token "WITH".
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getSaveTokenType(java.lang.String s,
boolean ignoreCase,
int start,
int end,
boolean additionalKeywords)
Get the token type.
|
static boolean |
isKeyword(java.lang.String s,
boolean ignoreCase)
Checks if this string is a SQL keyword.
|
static boolean |
isSimpleIdentifier(java.lang.String s)
Is this a simple identifier (in the JDBC specification sense).
|
public static final int KEYWORD
public static final int IDENTIFIER
public static final int ALL
public static final int ARRAY
public static final int CASE
public static final int CHECK
public static final int CONSTRAINT
public static final int CROSS
public static final int CURRENT_DATE
public static final int CURRENT_TIME
public static final int CURRENT_TIMESTAMP
public static final int CURRENT_USER
public static final int DISTINCT
public static final int EXCEPT
public static final int EXISTS
public static final int FALSE
public static final int FETCH
public static final int FOR
public static final int FOREIGN
public static final int FROM
public static final int FULL
public static final int GROUP
public static final int HAVING
public static final int IF
public static final int INNER
public static final int INTERSECT
public static final int INTERSECTS
public static final int INTERVAL
public static final int IS
public static final int JOIN
public static final int LIKE
public static final int LIMIT
public static final int LOCALTIME
public static final int LOCALTIMESTAMP
public static final int MINUS
public static final int NATURAL
public static final int NOT
public static final int NULL
public static final int OFFSET
public static final int ON
public static final int ORDER
public static final int PRIMARY
public static final int QUALIFY
public static final int ROW
public static final int _ROWID_
public static final int ROWNUM
public static final int SELECT
public static final int TABLE
public static final int TRUE
public static final int UNION
public static final int UNIQUE
public static final int VALUES
public static final int WHERE
public static final int WINDOW
public static final int WITH
public static boolean isKeyword(java.lang.String s,
boolean ignoreCase)
s - the token to checkignoreCase - true if case should be ignored, false if only upper case
tokens are detected as keywordspublic static boolean isSimpleIdentifier(java.lang.String s)
s - identifier to checkjava.lang.NullPointerException - if s is nullpublic static int getSaveTokenType(java.lang.String s,
boolean ignoreCase,
int start,
int end,
boolean additionalKeywords)
s - the string with tokenignoreCase - true if case should be ignored, false if only upper case
tokens are detected as keywordsstart - start index of tokenend - index of token, exclusive; must be greater than start indexadditionalKeywords - whether TOP, INTERSECTS, and "current data /
time" functions are keywords