Interface ICommandNode
- All Known Subinterfaces:
ICommandHandler
,ICommandManager
- All Known Implementing Classes:
AbstractCommandHandler
,SimpleCommandManager
public interface ICommandNode
A command node, either a handler or a manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicate to the parser that quotes should be processed as any other char. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(List<InputToken> tokens) Execute the command.getHelp()
Retrieve a short help that describes the commandgetName()
Retrieve the name of the command (used to invoke the command)int
Retrieve the parent, that is, this node's manager.
-
Field Details
-
QUOTES_AS_NORMAL_CHAR
static final int QUOTES_AS_NORMAL_CHARIndicate to the parser that quotes should be processed as any other char. It is the responsibility of theICommandNode
to validate arguments.- See Also:
-
-
Method Details
-
getName
String getName()Retrieve the name of the command (used to invoke the command)- Returns:
-
getHelp
String getHelp()Retrieve a short help that describes the command- Returns:
-
getOptions
int getOptions()- Returns:
-
getParent
ICommandManager getParent()Retrieve the parent, that is, this node's manager.- Returns:
-
getChildren
List<ICommandNode> getChildren()- Returns:
-
execute
Execute the command.- Parameters:
tokens
-- Returns:
-