Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
cachedTokenManager |
protected CompilerContext |
cc |
protected CharStream |
charStream |
(package private) static int |
LARGE_TOKEN_SIZE |
protected java.lang.String |
SQLtext |
Constructor and Description |
---|
ParserImpl(CompilerContext cc)
Constructor for Parser
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSQLtext()
Returns the current SQL text string that is being parsed.
|
protected java.lang.Object |
getTokenManager()
Returns a initialized (clean) TokenManager, paired w.
|
Visitable |
parseStatement(java.lang.String statementSQLText) |
Visitable |
parseStatement(java.lang.String statementSQLText,
java.lang.Object[] paramDefaults)
Parse a statement and return a query tree.
|
static final int LARGE_TOKEN_SIZE
protected java.lang.Object cachedTokenManager
protected CharStream charStream
protected java.lang.String SQLtext
protected final CompilerContext cc
public ParserImpl(CompilerContext cc)
public Visitable parseStatement(java.lang.String statementSQLText) throws StandardException
parseStatement
in interface Parser
StandardException
protected java.lang.Object getTokenManager()
public Visitable parseStatement(java.lang.String statementSQLText, java.lang.Object[] paramDefaults) throws StandardException
parseStatement
in interface Parser
statementSQLText
- Statement to parseparamDefaults
- parameter defaults. Passed around as an array
of objects, but is really an array of StorableDataValuesStandardException
- Thrown on errorpublic java.lang.String getSQLtext()
getSQLtext
in interface Parser