クラス Script
java.lang.ObjectSE
org.springframework.shell.core.command.Script
- 実装されているすべてのインターフェース:
Command
ファイルから他のコマンドを読み取って実行できるコマンド。
- 作成者:
- Eric Bottard, Janne Valkealahti, Mahmoud Ben Hassine
ネストされたクラスの要約
インターフェース org.springframework.shell.core.command.Command から継承されたネストクラス / インターフェース
Command.Builderコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明execute(CommandContext commandContext) 指定されたコンテキスト内でコマンドを実行します。コマンドの簡単な説明を取得します。getGroup()コマンドのグループを取得します。voidsetCommandParser(CommandParser commandParser) Set the command parser to use to parse commands in the script.クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.shell.core.command.Command から継承されたメソッド
getAliases, getAvailabilityProvider, getCompletionProvider, getHelp, getName, getOptions, isHidden
コンストラクターの詳細
Script
public Script()
メソッドの詳細
getDescription
インターフェースからコピーされた説明:Commandコマンドの簡単な説明を取得します。- 次で指定:
- インターフェース
CommandのgetDescription - 戻り値:
- コマンドの説明
getGroup
インターフェースからコピーされた説明:Commandコマンドのグループを取得します。execute
インターフェースからコピーされた説明:Command指定されたコンテキスト内でコマンドを実行します。- 次で指定:
- インターフェース
Commandのexecute - パラメーター:
commandContext- コマンドのコンテキスト- 戻り値:
- コマンドの終了ステータス
- 例外:
ExceptionSE
setCommandParser
Set the command parser to use to parse commands in the script.- パラメーター:
commandParser- the command parser to set