Package net.sf.jsqlparser.parser
Class ParserKeywordsUtils
java.lang.Object
net.sf.jsqlparser.parser.ParserKeywordsUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Object[][]
static final CharsetEncoder
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
getAllKeywords
(File file) getAllKeywordsUsingRegex
(File file) getReservedKeywords
(int restriction) static void
private static void
replaceInFile
(File file, Pattern pattern, String replacement) static String
rightPadding
(String input, char ch, int length) static void
-
Field Details
-
CHARSET_ENCODER
-
RESTRICTED_FUNCTION
public static final int RESTRICTED_FUNCTION- See Also:
-
RESTRICTED_SCHEMA
public static final int RESTRICTED_SCHEMA- See Also:
-
RESTRICTED_TABLE
public static final int RESTRICTED_TABLE- See Also:
-
RESTRICTED_COLUMN
public static final int RESTRICTED_COLUMN- See Also:
-
RESTRICTED_EXPRESSION
public static final int RESTRICTED_EXPRESSION- See Also:
-
RESTRICTED_ALIAS
public static final int RESTRICTED_ALIAS- See Also:
-
RESTRICTED_SQL2016
public static final int RESTRICTED_SQL2016- See Also:
-
RESTRICTED_JSQLPARSER
public static final int RESTRICTED_JSQLPARSER- See Also:
-
ALL_RESERVED_KEYWORDS
-
-
Constructor Details
-
ParserKeywordsUtils
public ParserKeywordsUtils()
-
-
Method Details
-
getReservedKeywords
-
main
- Parameters:
args
- with: Grammar File, Keyword Documentation File- Throws:
Exception
-
getAllKeywordsUsingRegex
- Throws:
IOException
-
buildGrammarForRelObjectNameWithoutValue
- Throws:
Exception
-
buildGrammarForRelObjectName
- Throws:
Exception
-
getAllKeywords
- Throws:
Exception
-
replaceInFile
private static void replaceInFile(File file, Pattern pattern, String replacement) throws IOException - Throws:
IOException
-
rightPadding
-
writeKeywordsDocumentationFile
- Throws:
IOException
-