Package org.jboss.as.cli.parsing
Class BackQuotesState
- java.lang.Object
-
- org.jboss.as.cli.parsing.DefaultParsingState
-
- org.jboss.as.cli.parsing.BackQuotesState
-
- All Implemented Interfaces:
ParsingState
public class BackQuotesState extends DefaultParsingState
- Author:
- Alexey Loubyansky
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDstatic BackQuotesStateQUOTES_INCLUDEDstatic BackQuotesStateQUOTES_INCLUDED_KEEP_ESCAPES-
Fields inherited from class org.jboss.as.cli.parsing.DefaultParsingState
enterStateHandlers
-
-
Constructor Summary
Constructors Constructor Description BackQuotesState(boolean quotesInContent)BackQuotesState(boolean quotesInContent, boolean escapeEnabled)BackQuotesState(boolean quotesInContent, EscapeCharacterState escape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharacterHandlergetEndContentHandler()CharacterHandlergetEnterHandler()StringgetId()CharacterHandlergetLeaveHandler()CharacterHandlergetReturnHandler()booleanlockValueIndex()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. states that return true from updateValueIndex).voidsetEndContentHandler(CharacterHandler handler)voidsetEnterHandler(CharacterHandler handler)voidsetLeaveHandler(CharacterHandler handler)voidsetReturnHandler(CharacterHandler handler)booleanupdateValueIndex()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.-
Methods inherited from class org.jboss.as.cli.parsing.DefaultParsingState
enterState, getDefaultHandler, getHandler, getWhitespaceHandler, isIgnoreWhitespaces, isLeaveOnWhitespace, leaveState, putHandler, setDefaultHandler, setHandleEntrance, setIgnoreWhitespaces, setLeaveOnWhitespace, setWhitespaceHandler
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
QUOTES_INCLUDED
public static final BackQuotesState QUOTES_INCLUDED
-
QUOTES_INCLUDED_KEEP_ESCAPES
public static final BackQuotesState QUOTES_INCLUDED_KEEP_ESCAPES
-
-
Constructor Detail
-
BackQuotesState
public BackQuotesState(boolean quotesInContent)
-
BackQuotesState
public BackQuotesState(boolean quotesInContent, boolean escapeEnabled)
-
BackQuotesState
public BackQuotesState(boolean quotesInContent, EscapeCharacterState escape)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceParsingState
-
getEndContentHandler
public CharacterHandler getEndContentHandler()
- Specified by:
getEndContentHandlerin interfaceParsingState
-
setEndContentHandler
public void setEndContentHandler(CharacterHandler handler)
-
getReturnHandler
public CharacterHandler getReturnHandler()
- Specified by:
getReturnHandlerin interfaceParsingState
-
setReturnHandler
public void setReturnHandler(CharacterHandler handler)
-
getEnterHandler
public CharacterHandler getEnterHandler()
- Specified by:
getEnterHandlerin interfaceParsingState
-
setEnterHandler
public void setEnterHandler(CharacterHandler handler)
-
getLeaveHandler
public CharacterHandler getLeaveHandler()
- Specified by:
getLeaveHandlerin interfaceParsingState
-
setLeaveHandler
public void setLeaveHandler(CharacterHandler handler)
-
updateValueIndex
public boolean updateValueIndex()
Description copied from interface:ParsingStateWhether 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.- Specified by:
updateValueIndexin interfaceParsingState- Returns:
- true if the index of the current value should be updated when parsing enters this state, false - otherwise.
-
lockValueIndex
public boolean lockValueIndex()
Description copied from interface:ParsingStateWhether 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. states that return true from updateValueIndex).- Specified by:
lockValueIndexin interfaceParsingState- Returns:
- true if the value index should remain unchanged until this state is left.
-
-