public class QuotesState extends DefaultParsingState
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static QuotesState |
QUOTES_EXCLUDED |
static QuotesState |
QUOTES_INCLUDED |
static QuotesState |
QUOTES_INCLUDED_KEEP_ESCAPES |
enterStateHandlers| Constructor and Description |
|---|
QuotesState(boolean quotesInContent) |
QuotesState(boolean quotesInContent,
boolean escapeEnabled) |
QuotesState(boolean quotesInContent,
EscapeCharacterState escape) |
| Modifier and Type | Method and Description |
|---|---|
CharacterHandler |
getEndContentHandler() |
CharacterHandler |
getEnterHandler() |
String |
getId() |
CharacterHandler |
getLeaveHandler() |
CharacterHandler |
getReturnHandler() |
boolean |
lockValueIndex()
Whether the index of the current value being parsed should remain
the same until parsing leaves this state even if there are other
nested states that might want to update the value index
(i.e.
|
void |
setEndContentHandler(CharacterHandler handler) |
void |
setEnterHandler(CharacterHandler handler) |
void |
setLeaveHandler(CharacterHandler handler) |
void |
setReturnHandler(CharacterHandler handler) |
boolean |
updateValueIndex()
Whether the index of the value corresponding to this state
in the command line being parsed should be set to the index
when parsing enters this state.
|
enterState, getDefaultHandler, getHandler, getWhitespaceHandler, isIgnoreWhitespaces, isLeaveOnWhitespace, leaveState, putHandler, setDefaultHandler, setHandleEntrance, setIgnoreWhitespaces, setLeaveOnWhitespace, setWhitespaceHandlerpublic static final String ID
public static final QuotesState QUOTES_EXCLUDED
public static final QuotesState QUOTES_INCLUDED
public static final QuotesState QUOTES_INCLUDED_KEEP_ESCAPES
public QuotesState(boolean quotesInContent)
public QuotesState(boolean quotesInContent,
boolean escapeEnabled)
public QuotesState(boolean quotesInContent,
EscapeCharacterState escape)
public String getId()
getId in interface ParsingStatepublic CharacterHandler getEndContentHandler()
getEndContentHandler in interface ParsingStatepublic void setEndContentHandler(CharacterHandler handler)
public CharacterHandler getReturnHandler()
getReturnHandler in interface ParsingStatepublic void setReturnHandler(CharacterHandler handler)
public CharacterHandler getEnterHandler()
getEnterHandler in interface ParsingStatepublic void setEnterHandler(CharacterHandler handler)
public CharacterHandler getLeaveHandler()
getLeaveHandler in interface ParsingStatepublic void setLeaveHandler(CharacterHandler handler)
public boolean updateValueIndex()
ParsingStateupdateValueIndex in interface ParsingStatepublic boolean lockValueIndex()
ParsingStatelockValueIndex in interface ParsingStateCopyright © 2014 JBoss by Red Hat. All rights reserved.