インターフェース CommandCatalog
- すべての既知の実装クラス:
CommandCatalog.DefaultCommandCatalog
public interface CommandCatalog
既存の
CommandRegistration を処理するための契約を定義するインターフェース。ネストされたクラスの概要
ネストされたクラス方法の概要
修飾子と型メソッド説明名前でマップされたすべてのCommandRegistrationを取得します。static CommandCatalogof()デフォルトのCommandCatalogのインスタンスを取得します。static CommandCatalogof(CollectionSE<CommandResolver> resolvers, ShellContext shellContext) デフォルトのCommandCatalogのインスタンスを取得します。voidregister(CommandRegistration... registration) CommandRegistrationを登録します。voidunregister(StringSE... commandName) コマンド名でCommandRegistrationを登録解除します。voidunregister(CommandRegistration... registration) CommandRegistrationを登録解除します。
方法の詳細
register
CommandRegistrationを登録します。- パラメーター:
registration- コマンド登録
unregister
CommandRegistrationを登録解除します。- パラメーター:
registration- コマンド登録
unregister
コマンド名でCommandRegistrationを登録解除します。- パラメーター:
commandName- コマンド名
getRegistrations
MapSE<StringSE,CommandRegistration> getRegistrations()名前でマップされたすべてのCommandRegistrationを取得します。返されたマップはコピーであり、新しいコマンドの登録には使用できません。- 戻り値:
- すべてのコマンド登録
of
デフォルトのCommandCatalogのインスタンスを取得します。- 戻り値:
- デフォルトのコマンドカタログ
of
デフォルトのCommandCatalogのインスタンスを取得します。- パラメーター:
resolvers- コマンドリゾルバーshellContext- シェルコンテキスト- 戻り値:
- デフォルトのコマンドカタログ