frysk.hpd
Class NoOptsCommand

java.lang.Object
  extended by frysk.hpd.Command
      extended by frysk.hpd.NoOptsCommand
Direct Known Subclasses:
ShellCommand

public abstract class NoOptsCommand
extends Command

Handle commands that should not interpret options.


Field Summary
private  String full
           
private  String syntax
           
 
Constructor Summary
NoOptsCommand(String description, String syntax, String full)
           
 
Method Summary
(package private)  void help(CLI cli, Input input)
          Print a full "help" message (syntax and then details) for this command.
(package private)  void interpret(CLI cli, Input input)
          Treat option help as special case.
(package private) abstract  void interpretCommand(CLI cli, Input input)
          Interpret commands.
 
Methods inherited from class frysk.hpd.Command
complete, description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

syntax

private final String syntax

full

private final String full
Constructor Detail

NoOptsCommand

public NoOptsCommand(String description,
                     String syntax,
                     String full)
Method Detail

interpret

void interpret(CLI cli,
               Input input)
Treat option help as special case.

Specified by:
interpret in class Command

interpretCommand

abstract void interpretCommand(CLI cli,
                               Input input)
Interpret commands.


help

void help(CLI cli,
          Input input)
Description copied from class: Command
Print a full "help" message (syntax and then details) for this command.

Overrides:
help in class Command