|
||||||||||
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.InSingleQuotesParsingState
public class InSingleQuotesParsingState
A state for parsing single quotes ('text') part of a script.
Field Summary | |
---|---|
protected boolean |
backSlashEscapingEnabled
Determines whether backslashes can be used to escape characters, e.g. \' for a single quote (= '') |
protected boolean |
escaping
True if the next character should be escaped |
protected ParsingState |
normalParsingState
The normal, not in quotes, not in comment state. |
Constructor Summary | |
---|---|
InSingleQuotesParsingState()
|
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 InSingleQuotesParsingState()
Method Detail |
---|
public void init(ParsingState normalParsingState, boolean backSlashEscapingEnabled)
normalParsingState
- The normal state, not nullbackSlashEscapingEnabled
- True if backslashes can be used for escapingprotected ParsingState getNextParsingState(char previousChar, char currentChar, char nextChar, StatementBuilder statementBuilder)
getNextParsingState
in class BaseParsingState
previousChar
- 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 |