T - the command object typepublic interface CommandBuilder<T>
| Modifier and Type | Method and Description |
|---|---|
CommandBuilder<T> |
addCommand(String name,
T command)
Adds a leaf command with explicit name.
|
default CommandBuilder<T> |
addCommand(T command)
Adds a leaf command.
|
CommandBuilder<T> |
addGroup(String name,
T command,
Consumer<? super CommandBuilder<T>> configurator)
Adds a group with explicit name.
|
default CommandBuilder<T> |
addGroup(T command,
Consumer<? super CommandBuilder<T>> configurator)
Adds a group.
|
default CommandBuilder<T> |
configure(Consumer<? super CommandBuilder<T>> configurator)
Configures this object.
|
default CommandBuilder<T> configure(Consumer<? super CommandBuilder<T>> configurator)
configurator - the configuratordefault CommandBuilder<T> addCommand(T command)
command - the command objectCommandBuilder<T> addCommand(String name, T command)
name - the command namecommand - the command objectdefault CommandBuilder<T> addGroup(T command, Consumer<? super CommandBuilder<T>> configurator)
command - the group commandconfigurator - the group configuratorCommandBuilder<T> addGroup(String name, T command, Consumer<? super CommandBuilder<T>> configurator)
name - the group namecommand - the group commandconfigurator - the group configuratorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.