| Package | Description |
|---|---|
| org.unitils.dbmaintainer.script.impl | |
| org.unitils.dbmaintainer.script.parsingstate | |
| org.unitils.dbmaintainer.script.parsingstate.impl |
| Modifier and Type | Field and Description |
|---|---|
protected ParsingState |
DefaultScriptParser.currentParsingState
The current state.
|
protected ParsingState |
DefaultScriptParser.initialParsingState
The starting state.
|
| Modifier and Type | Method and Description |
|---|---|
protected ParsingState |
DefaultScriptParser.createInitialParsingState(boolean backSlashEscapingEnabled)
Builds the initial parsing state.
|
| Modifier and Type | Method and Description |
|---|---|
ParsingState |
ParsingState.handleNextChar(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Handles the next character in the script.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseParsingState
Base class for a parsing state.
|
class |
InBlockCommentParsingState
A state for parsing an in-block comment (/ * comment * /) part of a script.
|
class |
InDoubleQuotesParsingState
A state for parsing double quotes ("text") literal part of a script.
|
class |
InLineCommentParsingState
A state for parsing an in-line comment (-- comment) part of a script.
|
class |
InSingleQuotesParsingState
A state for parsing single quotes ('text') part of a script.
|
class |
NormalParsingState
The default initial parsing state that is able to recognize the beginning of line comments, block comments,
single and double quote literals and the ending of a statment.
|
class |
OracleNormalParsingState
The initial state for Oracle.
|
| Modifier and Type | Field and Description |
|---|---|
protected ParsingState |
NormalParsingState.inBlockCommentParsingState
The in a block comment (/ * comment * /) state.
|
protected ParsingState |
NormalParsingState.inDoubleQuotesParsingState
The in double quotes ("text") state.
|
protected ParsingState |
NormalParsingState.inLineCommentParsingState
The in an in-line comment (-- comment) state.
|
protected ParsingState |
NormalParsingState.inSingleQuotesParsingState
The in single quotes ('text') state.
|
protected ParsingState |
InSingleQuotesParsingState.normalParsingState
The normal, not in quotes, not in comment state.
|
protected ParsingState |
InLineCommentParsingState.normalParsingState
The normal parsing state, that should be returned when the comment end is reached.
|
protected ParsingState |
InDoubleQuotesParsingState.normalParsingState
The normal parsing state, that should be returned when the quote end is reached.
|
protected ParsingState |
InBlockCommentParsingState.normalParsingState
The normal parsing state, that should be returned when the comment end is reached.
|
| Modifier and Type | Method and Description |
|---|---|
protected ParsingState |
OracleNormalParsingState.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 ParsingState |
NormalParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines the next state.
|
protected ParsingState |
InSingleQuotesParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines whether the end of the literal is reached.
|
protected ParsingState |
InLineCommentParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines whether the end of the line comment is reached.
|
protected ParsingState |
InDoubleQuotesParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines whether the end of the literal is reached.
|
protected ParsingState |
InBlockCommentParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines whether the end of the block comment is reached.
|
protected abstract ParsingState |
BaseParsingState.getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines the next state.
|
ParsingState |
BaseParsingState.handleNextChar(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Handles the next character by adding it to the statement builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InLineCommentParsingState.init(ParsingState normalParsingState)
Initializes the state with the normal parsing state, that should be returned when the comment end is reached..
|
void |
InBlockCommentParsingState.init(ParsingState normalParsingState)
Initializes the state with the normal parsing state, that should be returned when the comment end is reached..
|
void |
InSingleQuotesParsingState.init(ParsingState normalParsingState,
boolean backSlashEscapingEnabled)
Initializes the state with the normal parsing state, that should be returned when the end of the literal is reached..
|
void |
InDoubleQuotesParsingState.init(ParsingState normalParsingState,
boolean backSlashEscapingEnabled)
Initializes the state with the normal parsing state, that should be returned when the end of the literal is reached.
|
void |
NormalParsingState.init(ParsingState inLineCommentParsingState,
ParsingState inBlockCommentParsingState,
ParsingState inSingleQuotesParsingState,
ParsingState inDoubleQuotesParsingState,
boolean backSlashEscapingEnabled)
Initializes the state with the given parsing states.
|
Copyright © 2017. All rights reserved.