randoop.main
Class CommandHandler

Object
  extended by CommandHandler
Direct Known Subclasses:
CleanObservations, CovUtils, ExecuteSequence, GenInputsAbstract, Help, RmDiffObservations, UniversalDriverHandler

public abstract class CommandHandler
extends Object

A command is the first argument given to Randoop. A command handler handles one command. It also takes care of printing the command's documentation.


Field Summary
Modifier and Type Field and Description
 String fcommand
           
 String fcommandGrammar
           
 String fexample
           
 String finput
           
 List<String> fnotes
           
 Options foptions
           
 String foutput
           
 String fpitch
           
 String fsummary
           
 String fwhere
           
 
Constructor Summary
Constructor and Description
CommandHandler(String command, String pitch, String commandGrammar, String where, String summary, List<String> notes, String input, String output, String example, Options options)
          No arguments should be null.
 
Method Summary
Modifier and Type Method and Description
abstract  boolean handle(String[] args)
           
 boolean handles(String command)
           
 void printHTML(PrintStream out)
          Prints out formatted text in (google code) Wiki format.
 void usageMessage(PrintStream out, boolean showUnpublicized)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcommand

public String fcommand

fpitch

public String fpitch

fcommandGrammar

public String fcommandGrammar

fwhere

public String fwhere

fsummary

public String fsummary

fnotes

public List<String> fnotes

finput

public String finput

foutput

public String foutput

fexample

public String fexample

foptions

public Options foptions
Constructor Detail

CommandHandler

public CommandHandler(String command,
                      String pitch,
                      String commandGrammar,
                      String where,
                      String summary,
                      List<String> notes,
                      String input,
                      String output,
                      String example,
                      Options options)
No arguments should be null.

Method Detail

handles

public final boolean handles(String command)

handle

public abstract boolean handle(String[] args)
                        throws RandoopTextuiException
Throws:
RandoopTextuiException

printHTML

public final void printHTML(PrintStream out)
Prints out formatted text in (google code) Wiki format.


usageMessage

public final void usageMessage(PrintStream out,
                               boolean showUnpublicized)