Class Parser.DefaultNodeVisitor
java.lang.Object
org.springframework.shell.command.parser.AbstractNodeVisitor
org.springframework.shell.command.parser.Parser.DefaultNodeVisitor
- All Implemented Interfaces:
- NodeVisitor
- Enclosing interface:
- Parser
Default implementation of a 
NodeVisitor.- 
Method SummaryModifier and TypeMethodDescriptionprotected Parser.ParseResultCalled after all nodes has been visited to build results.protected voidCalled whenCommandArgumentNodeis entered.protected voidCalled whenCommandNodeis entered.protected voidCalled whenDirectiveNodeis entered.protected voidCalled whenOptionArgumentNodeis entered.protected voidonEnterOptionNode(OptionNode node) Called whenOptionNodeis entered.protected voidCalled whenCommandNodefor root is entered.protected voidCalled whenCommandArgumentNodeis exited.protected voidonExitCommandNode(CommandNode node) Called whenCommandNodeis exited.protected voidCalled whenDirectiveNodeis exited.protected voidCalled whenOptionArgumentNodeis exited.protected voidonExitOptionNode(OptionNode node) Called whenOptionNodeis exited.protected voidCalled whenCommandNodefor root is exited.Methods inherited from class org.springframework.shell.command.parser.AbstractNodeVisitorvisit
- 
Method Details- 
buildResultDescription copied from class:AbstractNodeVisitorCalled after all nodes has been visited to build results.- Specified by:
- buildResultin class- AbstractNodeVisitor
- Returns:
- the results from this visit operation
 
- 
onEnterDirectiveNodeDescription copied from class:AbstractNodeVisitorCalled whenDirectiveNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitDirectiveNode(DirectiveNode)is called.- Specified by:
- onEnterDirectiveNodein class- AbstractNodeVisitor
- Parameters:
- node- the option node
- See Also:
 
- 
onExitDirectiveNodeDescription copied from class:AbstractNodeVisitorCalled whenDirectiveNodeis exited.- Specified by:
- onExitDirectiveNodein class- AbstractNodeVisitor
- Parameters:
- node- the option node
- See Also:
 
- 
onEnterRootCommandNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandNodefor root is entered. When node is fully visited,AbstractNodeVisitor.onExitRootCommandNode(CommandNode)is called.- Specified by:
- onEnterRootCommandNodein class- AbstractNodeVisitor
- Parameters:
- node- the command node
- See Also:
 
- 
onExitRootCommandNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandNodefor root is exited.- Specified by:
- onExitRootCommandNodein class- AbstractNodeVisitor
- Parameters:
- node- the command node
- See Also:
 
- 
onEnterCommandNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitCommandNode(CommandNode)is called.- Specified by:
- onEnterCommandNodein class- AbstractNodeVisitor
- Parameters:
- node- the command node
- See Also:
 
- 
onExitCommandNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandNodeis exited.- Specified by:
- onExitCommandNodein class- AbstractNodeVisitor
- Parameters:
- node- the command node
- See Also:
 
- 
onEnterOptionNodeDescription copied from class:AbstractNodeVisitorCalled whenOptionNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitOptionNode(OptionNode)is called.- Specified by:
- onEnterOptionNodein class- AbstractNodeVisitor
- Parameters:
- node- the option node
- See Also:
 
- 
onExitOptionNodeDescription copied from class:AbstractNodeVisitorCalled whenOptionNodeis exited.- Specified by:
- onExitOptionNodein class- AbstractNodeVisitor
- Parameters:
- node- the option node
- See Also:
 
- 
onEnterCommandArgumentNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandArgumentNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitCommandArgumentNode(CommandArgumentNode)is called.- Specified by:
- onEnterCommandArgumentNodein class- AbstractNodeVisitor
- Parameters:
- node- the command argument node
- See Also:
 
- 
onExitCommandArgumentNodeDescription copied from class:AbstractNodeVisitorCalled whenCommandArgumentNodeis exited.- Specified by:
- onExitCommandArgumentNodein class- AbstractNodeVisitor
- Parameters:
- node- the command argument node
- See Also:
 
- 
onEnterOptionArgumentNodeDescription copied from class:AbstractNodeVisitorCalled whenOptionArgumentNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitOptionArgumentNode(OptionArgumentNode)is called.- Specified by:
- onEnterOptionArgumentNodein class- AbstractNodeVisitor
- Parameters:
- node- the option argument node
- See Also:
 
- 
onExitOptionArgumentNodeDescription copied from class:AbstractNodeVisitorCalled whenOptionArgumentNodeis exited.- Specified by:
- onExitOptionArgumentNodein class- AbstractNodeVisitor
- Parameters:
- node- the command argument node
- See Also:
 
 
-