|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbmaintainer.script.parsingstate.impl.BaseParsingState
org.unitils.dbmaintainer.script.parsingstate.impl.InDoubleQuotesParsingState
public class InDoubleQuotesParsingState
A state for parsing double quotes ("text") literal part of a script.
| Field Summary | |
|---|---|
protected boolean |
backSlashEscapingEnabled
Determines whether backslashes can be used to escape characters, e.g. \" for a double quote (= "") |
protected boolean |
escaping
True if the next character should be escaped |
protected ParsingState |
normalParsingState
The normal parsing state, that should be returned when the quote end is reached. |
| Constructor Summary | |
|---|---|
InDoubleQuotesParsingState()
|
|
| Method Summary | |
|---|---|
protected ParsingState |
getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
Determines whether the end of the literal is reached. |
void |
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. |
| Methods inherited from class org.unitils.dbmaintainer.script.parsingstate.impl.BaseParsingState |
|---|
handleNextChar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParsingState normalParsingState
protected boolean backSlashEscapingEnabled
protected boolean escaping
| Constructor Detail |
|---|
public InDoubleQuotesParsingState()
| Method Detail |
|---|
public void init(ParsingState normalParsingState,
boolean backSlashEscapingEnabled)
normalParsingState - The normal state, not nullbackSlashEscapingEnabled - True if backslashes can be used for escaping
protected ParsingState getNextParsingState(char previousChar,
char currentChar,
char nextChar,
StatementBuilder statementBuilder)
getNextParsingState in class BaseParsingStatepreviousChar - The previous char, 0 if nonecurrentChar - The current charnextChar - The next char, 0 if nonestatementBuilder - The statement builder, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||