Class JShellCommand

All Implemented Interfaces:
SimpleCommand

public class JShellCommand extends SubshellCommand
A command that fires up a JShell instance.
  • Constructor Details

    • JShellCommand

      public JShellCommand()
      Default constructor.

      Creates an instance using a new anonymous JShellShell instance.

    • JShellCommand

      public JShellCommand(JShellShell shell)
      Constructor.

      This constructor provides default usage, summary, and description strings.

      Parameters:
      shell - creates subshell sessions
      Throws:
      IllegalArgumentException - if shell is null
    • JShellCommand

      public JShellCommand(JShellShell shell, String usage, String summary, String detail)
      Constructor.
      Parameters:
      shell - creates subshell sessions
      usage - usage string, or null if command takes no arguments
      summary - help summary
      detail - help detail
      Throws:
      IllegalArgumentException - if shell, summary or detail is null