Package net.sf.jsqlparser.parser
Class ParserKeywordsUtils
- java.lang.Object
-
- net.sf.jsqlparser.parser.ParserKeywordsUtils
-
public class ParserKeywordsUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Object[][]
ALL_RESERVED_KEYWORDS
static java.nio.charset.CharsetEncoder
CHARSET_ENCODER
static int
RESTRICTED_ALIAS
static int
RESTRICTED_COLUMN
static int
RESTRICTED_EXPRESSION
static int
RESTRICTED_FUNCTION
static int
RESTRICTED_JSQLPARSER
static int
RESTRICTED_SCHEMA
static int
RESTRICTED_SQL2016
static int
RESTRICTED_TABLE
-
Constructor Summary
Constructors Constructor Description ParserKeywordsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
buildGrammarForRelObjectName(java.io.File file)
static void
buildGrammarForRelObjectNameWithoutValue(java.io.File file)
static java.util.TreeSet<java.lang.String>
getAllKeywords(java.io.File file)
static java.util.TreeSet<java.lang.String>
getAllKeywordsUsingRegex(java.io.File file)
static java.util.List<java.lang.String>
getReservedKeywords(int restriction)
static void
main(java.lang.String[] args)
private static void
replaceInFile(java.io.File file, java.util.regex.Pattern pattern, java.lang.String replacement)
static java.lang.String
rightPadding(java.lang.String input, char ch, int length)
static void
writeKeywordsDocumentationFile(java.io.File file)
-
-
-
Field Detail
-
CHARSET_ENCODER
public static final java.nio.charset.CharsetEncoder CHARSET_ENCODER
-
RESTRICTED_FUNCTION
public static final int RESTRICTED_FUNCTION
- See Also:
- Constant Field Values
-
RESTRICTED_SCHEMA
public static final int RESTRICTED_SCHEMA
- See Also:
- Constant Field Values
-
RESTRICTED_TABLE
public static final int RESTRICTED_TABLE
- See Also:
- Constant Field Values
-
RESTRICTED_COLUMN
public static final int RESTRICTED_COLUMN
- See Also:
- Constant Field Values
-
RESTRICTED_EXPRESSION
public static final int RESTRICTED_EXPRESSION
- See Also:
- Constant Field Values
-
RESTRICTED_ALIAS
public static final int RESTRICTED_ALIAS
- See Also:
- Constant Field Values
-
RESTRICTED_SQL2016
public static final int RESTRICTED_SQL2016
- See Also:
- Constant Field Values
-
RESTRICTED_JSQLPARSER
public static final int RESTRICTED_JSQLPARSER
- See Also:
- Constant Field Values
-
ALL_RESERVED_KEYWORDS
public static final java.lang.Object[][] ALL_RESERVED_KEYWORDS
-
-
Method Detail
-
getReservedKeywords
public static java.util.List<java.lang.String> getReservedKeywords(int restriction)
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Parameters:
args
- with: Grammar File, Keyword Documentation File- Throws:
java.lang.Exception
-
getAllKeywordsUsingRegex
public static java.util.TreeSet<java.lang.String> getAllKeywordsUsingRegex(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
buildGrammarForRelObjectNameWithoutValue
public static void buildGrammarForRelObjectNameWithoutValue(java.io.File file) throws java.lang.Exception
- Throws:
java.lang.Exception
-
buildGrammarForRelObjectName
public static void buildGrammarForRelObjectName(java.io.File file) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getAllKeywords
public static java.util.TreeSet<java.lang.String> getAllKeywords(java.io.File file) throws java.lang.Exception
- Throws:
java.lang.Exception
-
replaceInFile
private static void replaceInFile(java.io.File file, java.util.regex.Pattern pattern, java.lang.String replacement) throws java.io.IOException
- Throws:
java.io.IOException
-
rightPadding
public static java.lang.String rightPadding(java.lang.String input, char ch, int length)
-
writeKeywordsDocumentationFile
public static void writeKeywordsDocumentationFile(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-