Package org.jboss.as.cli.parsing
Interface ParsingState
-
- All Known Implementing Classes:
AddressCommandSeparatorState,AddressOperationSeparatorState,ArgumentListState,ArgumentState,ArgumentValueInitialState,ArgumentValueState,ArgumentValueState,AttributeNamePathCompleter.AttributeNameState,AttributeNamePathCompleter.CloseBracketState,AttributeNamePathCompleter.DotState,AttributeNamePathCompleter.InitialValueState,AttributeNamePathCompleter.ListIndexState,AttributeNamePathCompleter.OpenBracketState,BackQuotesState,BasicInitialParsingState,BracketsState,BytesValueState,CommandNameState,CommandState,CompositeState,ConcurrentSignState,DefaultParsingState,DefaultStateWithEndCharacter,EscapeCharacterState,ExpressionBaseState,ExpressionValueState,HeaderListState,HeaderNameState,HeaderState,HeaderValueState,InitialState,InSeriesState,ListItemSeparatorState,NameValueSeparatorState,NodeState,NonObjectArgumentValueState,OperationNameState,OperationRequestState,OperatorState.OpState,OutputTargetState,PropertyListState,PropertyState,PropertyValueState,QuotesState,RolloutPlanState,SegmentParsingInitialState,ServerGroupListState,ServerGroupNameState,ServerGroupSeparatorState,ServerGroupState,ValueTypeCompleter.BytesState,ValueTypeCompleter.EqualsState,ValueTypeCompleter.InitialValueState,ValueTypeCompleter.ListItemSeparatorState,ValueTypeCompleter.PropertyListState,ValueTypeCompleter.PropertyState,ValueTypeCompleter.StartListState,ValueTypeCompleter.StartObjectState,ValueTypeCompleter.TextState
public interface ParsingState- Author:
- Alexey Loubyansky
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharacterHandlergetEndContentHandler()CharacterHandlergetEnterHandler()CharacterHandlergetHandler(char ch)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).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.
-
-
-
Method Detail
-
getId
String getId()
-
getEnterHandler
CharacterHandler getEnterHandler()
-
getLeaveHandler
CharacterHandler getLeaveHandler()
-
getHandler
CharacterHandler getHandler(char ch)
-
getReturnHandler
CharacterHandler getReturnHandler()
-
getEndContentHandler
CharacterHandler getEndContentHandler()
-
updateValueIndex
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.- Returns:
- true if the index of the current value should be updated when parsing enters this state, false - otherwise.
-
lockValueIndex
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. states that return true from updateValueIndex).- Returns:
- true if the value index should remain unchanged until this state is left.
-
-