Class JShellCommand

java.lang.Object
org.dellroad.jct.core.simple.AbstractSimpleCommand
org.dellroad.jct.core.simple.command.SubshellCommand
org.dellroad.jct.jshell.command.JShellCommand
All Implemented Interfaces:
org.dellroad.jct.core.simple.SimpleCommand

public class JShellCommand extends org.dellroad.jct.core.simple.command.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