public class ParserBase
extends java.lang.Object
| Constructor and Description |
|---|
ParserBase()
Creates a new instance of parser for special use cases.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatNonKeywords(java.util.BitSet nonKeywords)
Formats a comma-separated list of keywords.
|
int |
getLastParseIndex()
Returns the last parse index.
|
java.lang.Object |
parseColumnList(java.lang.String sql,
int offset)
Parses a list of column names or numbers in parentheses.
|
static java.util.BitSet |
parseNonKeywords(java.lang.String[] nonKeywords)
Parses the specified collection of non-keywords.
|
static java.lang.String |
quoteIdentifier(java.lang.String s,
int sqlFlags)
Add double quotes around an identifier if required.
|
void |
setLiteralsChecked(boolean literalsChecked) |
void |
setSuppliedParameters(java.util.ArrayList<Parameter> suppliedParameters) |
java.lang.String |
toString() |
public ParserBase()
public static java.lang.String quoteIdentifier(java.lang.String s,
int sqlFlags)
s - the identifiersqlFlags - formatting flagspublic static java.util.BitSet parseNonKeywords(java.lang.String[] nonKeywords)
nonKeywords - array of non-keywords in upper casenullpublic static java.lang.String formatNonKeywords(java.util.BitSet nonKeywords)
nonKeywords - bit set of non-keywords, or nullpublic final void setLiteralsChecked(boolean literalsChecked)
public final void setSuppliedParameters(java.util.ArrayList<Parameter> suppliedParameters)
public java.lang.Object parseColumnList(java.lang.String sql,
int offset)
sql - the source SQLoffset - the initial offsetString[]) or numbers
(int[])DbException - on syntax errorpublic final int getLastParseIndex()
public final java.lang.String toString()
toString in class java.lang.Object