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, setWhitespaceHandler
public 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 ParsingState
public CharacterHandler getEndContentHandler()
getEndContentHandler
in interface ParsingState
public void setEndContentHandler(CharacterHandler handler)
public CharacterHandler getReturnHandler()
getReturnHandler
in interface ParsingState
public void setReturnHandler(CharacterHandler handler)
public CharacterHandler getEnterHandler()
getEnterHandler
in interface ParsingState
public void setEnterHandler(CharacterHandler handler)
public CharacterHandler getLeaveHandler()
getLeaveHandler
in interface ParsingState
public void setLeaveHandler(CharacterHandler handler)
public boolean updateValueIndex()
ParsingState
updateValueIndex
in interface ParsingState
public boolean lockValueIndex()
ParsingState
lockValueIndex
in interface ParsingState
Copyright © 2023 JBoss by Red Hat. All rights reserved.