インターフェース CommandRegistration
- すべての既知の実装クラス:
CommandRegistration.DefaultCommandRegistration
public interface CommandRegistration
コマンド登録エンドポイントを定義するインターフェース。
ネストされたクラスのサマリー
ネストされたクラス修飾子と型インターフェース説明static interface
エイリアスを定義する仕様。static class
static interface
CommandRegistration
のビルダーインターフェース。static interface
CommandRegistration.Builder
のインスタンスを提供するために使用されるインターフェース。static class
static class
static class
static class
static class
static class
static class
static class
static interface
エラー処理を定義する仕様。static interface
終了コードを定義する仕様。static interface
static interface
ヘルプオプションを定義する仕様。static enum
オプションのアリティ値の列挙。static interface
オプションの長い名前を変更するために使用されるインターフェース。static interface
オプションを定義する仕様。static interface
CommandRegistration.TargetSpec
の情報をカプセル化します。static interface
ターゲットを定義する仕様。メソッドのサマリー
修飾子と型メソッド説明static CommandRegistration.Builder
builder()
CommandRegistration.Builder
の新しいインスタンスを取得します。エイリアスを取得します。コマンドのAvailability
を取得するこの登録のコマンドを取得します。コマンドの説明を取得します。例外リゾルバーを取得します。終了コードを取得します。getGroup()
コマンドのグループを取得します。ヘルプオプション情報を取得します。InteractionMode
を取得します。オプションを取得します。ターゲット情報を取得します。boolean
isHidden()
コマンドが非表示の場合に返します。
メソッドの詳細
getCommand
StringSE getCommand()この登録のコマンドを取得します。- 戻り値:
- コマンド
getInteractionMode
InteractionMode getInteractionMode()InteractionMode
を取得します。- 戻り値:
- 相互作用モード
getGroup
StringSE getGroup()コマンドのグループを取得します。- 戻り値:
- グループ
isHidden
boolean isHidden()コマンドが非表示の場合に返します。- 戻り値:
- コマンドが非表示の場合は true
getDescription
StringSE getDescription()コマンドの説明を取得します。- 戻り値:
- 説明
getAvailability
Availability getAvailability()コマンドのAvailability
を取得する- 戻り値:
- 可用性
getTarget
CommandRegistration.TargetInfo getTarget()ターゲット情報を取得します。- 戻り値:
- ターゲット情報
getOptions
ListSE<CommandOption> getOptions()オプションを取得します。- 戻り値:
- オプション
getAliases
ListSE<CommandAlias> getAliases()エイリアスを取得します。- 戻り値:
- エイリアス
getExitCode
CommandExitCode getExitCode()終了コードを取得します。- 戻り値:
- 終了コード
getExceptionResolvers
ListSE<CommandExceptionResolver> getExceptionResolvers()例外リゾルバーを取得します。- 戻り値:
- 例外リゾルバー
getHelpOption
CommandRegistration.HelpOptionInfo getHelpOption()ヘルプオプション情報を取得します。- 戻り値:
- ヘルプオプション情報
builder
CommandRegistration.Builder
の新しいインスタンスを取得します。- 戻り値:
- 新しいビルダーインスタンス