Class ShellCommand

  • All Implemented Interfaces:

    public class ShellCommand
    extends java.lang.Object
    implements Command
    Implements a tiny shell interpreter for the nomulus tool.

    Parses a very simple command grammar. Tokens are either whitespace delimited words or double-quoted strings.

    • Constructor Summary

      Constructor Description
      ShellCommand​( runner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ShellCommand buildCompletions​(com.beust.jcommander.JCommander jcommander)  
      void run()
      Run the shell until the user presses "Ctrl-D".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShellCommand

        public ShellCommand​( runner)
    • Method Detail

      • buildCompletions

        public ShellCommand buildCompletions​(com.beust.jcommander.JCommander jcommander)
      • run

        public void run()
        Run the shell until the user presses "Ctrl-D".
        Specified by:
        run in interface Command