クラス Script

java.lang.ObjectSE
org.springframework.shell.core.command.Script
実装されているすべてのインターフェース:
Command

public class Script extends ObjectSE implements Command
ファイルから他のコマンドを読み取って実行できるコマンド。
作成者:
Eric Bottard, Janne Valkealahti, Mahmoud Ben Hassine
  • コンストラクターの詳細

    • Script

      public Script()
  • メソッドの詳細

    • getDescription

      public StringSE getDescription()
      インターフェースからコピーされた説明: Command
      コマンドの簡単な説明を取得します。
      次で指定:
      インターフェース CommandgetDescription 
      戻り値:
      コマンドの説明
    • getGroup

      public StringSE getGroup()
      インターフェースからコピーされた説明: Command
      コマンドのグループを取得します。
      次で指定:
      インターフェース CommandgetGroup 
      戻り値:
      コマンドのグループ
    • execute

      public ExitStatus execute(CommandContext commandContext) throws ExceptionSE
      インターフェースからコピーされた説明: Command
      指定されたコンテキスト内でコマンドを実行します。
      次で指定:
      インターフェース Commandexecute 
      パラメーター:
      commandContext - コマンドのコンテキスト
      戻り値:
      コマンドの終了ステータス
      例外:
      ExceptionSE
    • setCommandParser

      public void setCommandParser(CommandParser commandParser)
      Set the command parser to use to parse commands in the script.
      パラメーター:
      commandParser - the command parser to set