Class ResolvedSubCommandNode
java.lang.Object
dev.ua.theroer.magicutils.commands.ResolvedSubCommandNode
Public immutable view of the resolved subcommand tree.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedSubCommandNode(String name, List<String> aliases, List<ResolvedSubCommandNode> children, ResolvedCommandAction action) Creates a new resolved subcommand node. -
Method Summary
-
Constructor Details
-
ResolvedSubCommandNode
public ResolvedSubCommandNode(String name, List<String> aliases, List<ResolvedSubCommandNode> children, ResolvedCommandAction action) Creates a new resolved subcommand node.- Parameters:
name- subcommand namealiases- subcommand aliaseschildren- list of child subcommand nodesaction- executable action for this node (can be null)
-
-
Method Details
-
root
-
name
-
aliases
-
children
Returns the child subcommand nodes.- Returns:
- child nodes
-
action
Returns the executable action for this node.- Returns:
- executable action or null
-