public class OracleNormalParsingState extends NormalParsingState
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
lineBuffer
Contains the current line
|
protected boolean |
parsingCodeBlock
True if a code block is being parsed
|
protected StringBuilder |
statementBuffer
Contains the current statement letters (no signs..) with all double whitespace and newlines converted to single whitespace
|
backSlashEscapingEnabled, escaping, inBlockCommentParsingState, inDoubleQuotesParsingState, inLineCommentParsingState, inSingleQuotesParsingState| Constructor and Description |
|---|
OracleNormalParsingState() |
| Modifier and Type | Method and Description |
|---|---|
protected ParsingState |
getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Overridden to also correctly identify the starting of PL/SQL code blocks and to handle slashes / to end a statement.
|
protected boolean |
isStartOfCodeStatement(StringBuilder statement)
Checks whether the statment contains the starting letters of a code statement (eg CREATE PACKAGE).
|
protected boolean |
matches(String text,
StringBuilder statement)
Utility method to check whether the given statement starts with the letters of the given text.
|
inithandleNextCharprotected boolean parsingCodeBlock
protected StringBuilder lineBuffer
protected StringBuilder statementBuffer
protected ParsingState getNextParsingState(char previousChar, char currentChar, char nextChar, StatementBuilder statementBuilder)
getNextParsingState in class NormalParsingStatepreviousChar - The previous char, 0 if nonecurrentChar - The current charnextChar - The next char, 0 if nonestatementBuilder - The statement builder, not nullprotected boolean isStartOfCodeStatement(StringBuilder statement)
statement - The buffer, not nullprotected boolean matches(String text, StringBuilder statement)
text - The starting letters, not nullstatement - The statement to checkCopyright © 2017. All rights reserved.