# Class: com.pnfsoftware.jeb.util.interpreter.SimpleCommandManager

A basic command manager that may be extended.

## Constructor: SimpleCommandManager

Description: Create a root command manager.

## Constructor: SimpleCommandManager
- parameter: `parent`, type: `com.pnfsoftware.jeb.util.interpreter.ICommandManager`
- parameter: `name`, type: `java.lang.String`

Description: Create a command manager.
parameter: parent: parent command manager, or null for the root manager
parameter: name: manager name; must be empty for a root manager

## Method: addChild
- parameter: `node`, type: `com.pnfsoftware.jeb.util.interpreter.ICommandNode`
- return type: `com.pnfsoftware.jeb.util.interpreter.ICommandNode`


## Method: execute
- parameter: `line`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.util.interpreter.ExecutionResult`

Description: Parse and execute a command line.
parameter: line: command line
return: the execution result, or null if no command matched

## Method: execute
- parameter: `tokens`, type: `java.util.List<com.pnfsoftware.jeb.util.interpreter.InputToken>`
- return type: `com.pnfsoftware.jeb.util.interpreter.ExecutionResult`


## Method: getChildren
- return type: `java.util.List<com.pnfsoftware.jeb.util.interpreter.ICommandNode>`


## Method: getHelp
- return type: `java.lang.String`


## Method: getName
- return type: `java.lang.String`


## Method: getOptions
- return type: `int`


## Method: getParent
- return type: `com.pnfsoftware.jeb.util.interpreter.ICommandManager`


## Method: parseTokenString
- parameter: `line`, type: `java.lang.String`
- return type: `java.util.List<com.pnfsoftware.jeb.util.interpreter.InputToken>`

Description: Parse a command line into input tokens.
parameter: line: command line
return: parsed input tokens
throws: if the command line contains invalid quoting or escaping

## Protected Method: postCheck
- return type: `com.pnfsoftware.jeb.util.interpreter.ExecutionResult`

Description: Override to do command post\-execution check. Only executed if command execution succeeded. The default implementation does nothing.
return: an error to prevent the command from executing; null or a success to proceed

## Protected Method: preCheck
- return type: `com.pnfsoftware.jeb.util.interpreter.ExecutionResult`

Description: Override to do command pre\-execution check. The default implementation does nothing.
return: an error to prevent the command from executing; null or a success to proceed with         command execution

