public class InSingleQuotesParsingState extends BaseParsingState
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
InSingleQuotesParsingState() |
| Modifier and Type | Method and Description |
|---|---|
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..
|
handleNextCharprotected ParsingState normalParsingState
protected boolean backSlashEscapingEnabled
protected boolean escaping
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 BaseParsingStatepreviousChar - The previous char, 0 if nonecurrentChar - The current charnextChar - The next char, 0 if nonestatementBuilder - The statement builder, not nullCopyright © 2017. All rights reserved.