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 Summary
Modifier 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.AbstractNodeVisitor
visit
-
Method Details
-
buildResult
Description copied from class:AbstractNodeVisitorCalled after all nodes has been visited to build results.- Specified by:
buildResultin classAbstractNodeVisitor- Returns:
- the results from this visit operation
-
onEnterDirectiveNode
Description copied from class:AbstractNodeVisitorCalled whenDirectiveNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitDirectiveNode(DirectiveNode)is called.- Specified by:
onEnterDirectiveNodein classAbstractNodeVisitor- Parameters:
node- the option node- See Also:
-
onExitDirectiveNode
Description copied from class:AbstractNodeVisitorCalled whenDirectiveNodeis exited.- Specified by:
onExitDirectiveNodein classAbstractNodeVisitor- Parameters:
node- the option node- See Also:
-
onEnterRootCommandNode
Description copied from class:AbstractNodeVisitorCalled whenCommandNodefor root is entered. When node is fully visited,AbstractNodeVisitor.onExitRootCommandNode(CommandNode)is called.- Specified by:
onEnterRootCommandNodein classAbstractNodeVisitor- Parameters:
node- the command node- See Also:
-
onExitRootCommandNode
Description copied from class:AbstractNodeVisitorCalled whenCommandNodefor root is exited.- Specified by:
onExitRootCommandNodein classAbstractNodeVisitor- Parameters:
node- the command node- See Also:
-
onEnterCommandNode
Description copied from class:AbstractNodeVisitorCalled whenCommandNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitCommandNode(CommandNode)is called.- Specified by:
onEnterCommandNodein classAbstractNodeVisitor- Parameters:
node- the command node- See Also:
-
onExitCommandNode
Description copied from class:AbstractNodeVisitorCalled whenCommandNodeis exited.- Specified by:
onExitCommandNodein classAbstractNodeVisitor- Parameters:
node- the command node- See Also:
-
onEnterOptionNode
Description copied from class:AbstractNodeVisitorCalled whenOptionNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitOptionNode(OptionNode)is called.- Specified by:
onEnterOptionNodein classAbstractNodeVisitor- Parameters:
node- the option node- See Also:
-
onExitOptionNode
Description copied from class:AbstractNodeVisitorCalled whenOptionNodeis exited.- Specified by:
onExitOptionNodein classAbstractNodeVisitor- Parameters:
node- the option node- See Also:
-
onEnterCommandArgumentNode
Description copied from class:AbstractNodeVisitorCalled whenCommandArgumentNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitCommandArgumentNode(CommandArgumentNode)is called.- Specified by:
onEnterCommandArgumentNodein classAbstractNodeVisitor- Parameters:
node- the command argument node- See Also:
-
onExitCommandArgumentNode
Description copied from class:AbstractNodeVisitorCalled whenCommandArgumentNodeis exited.- Specified by:
onExitCommandArgumentNodein classAbstractNodeVisitor- Parameters:
node- the command argument node- See Also:
-
onEnterOptionArgumentNode
Description copied from class:AbstractNodeVisitorCalled whenOptionArgumentNodeis entered. When node is fully visited,AbstractNodeVisitor.onExitOptionArgumentNode(OptionArgumentNode)is called.- Specified by:
onEnterOptionArgumentNodein classAbstractNodeVisitor- Parameters:
node- the option argument node- See Also:
-
onExitOptionArgumentNode
Description copied from class:AbstractNodeVisitorCalled whenOptionArgumentNodeis exited.- Specified by:
onExitOptionArgumentNodein classAbstractNodeVisitor- Parameters:
node- the command argument node- See Also:
-