Package org.dellroad.jct.jshell.command
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:
SimpleCommand
A command that fires up a
JShell
instance.-
Field Summary
Fields inherited from class org.dellroad.jct.core.simple.command.SubshellCommand
shell
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.JShellCommand
(JShellShell shell) Constructor.JShellCommand
(JShellShell shell, String usage, String summary, String detail) Constructor. -
Method Summary
Methods inherited from class org.dellroad.jct.core.simple.command.SubshellCommand
buildShellRequest, createSubshell, execute, executeSubshell
Methods inherited from class org.dellroad.jct.core.simple.AbstractSimpleCommand
getHelpDetail, getHelpSummary, getUsage, printUsage
-
Constructor Details
-
JShellCommand
public JShellCommand()Default constructor.Creates an instance using a new anonymous
JShellShell
instance. -
JShellCommand
Constructor.This constructor provides default usage, summary, and description strings.
- Parameters:
shell
- creates subshell sessions- Throws:
IllegalArgumentException
- ifshell
is null
-
JShellCommand
Constructor.- Parameters:
shell
- creates subshell sessionsusage
- usage string, or null if command takes no argumentssummary
- help summarydetail
- help detail- Throws:
IllegalArgumentException
- ifshell
,summary
ordetail
is null
-