edu.rice.cs.cunit
Class ACUnitRun

java.lang.Object
  extended by edu.rice.cs.cunit.ACUnitRun
Direct Known Subclasses:
TCRun

public abstract class ACUnitRun
extends java.lang.Object

Author:
Mathias Ricken

Field Summary
protected  java.lang.String _className
          Class to load and execute.
protected  java.lang.String _instrumentorClassName
          Instrumentor class name.
protected  boolean _makeBackups
          Make backups of original files?
protected  boolean _noSaveInstrumented
          Do not save instrumented class files?
protected  java.util.List<java.lang.String> _parameters
          List of parameters to the instrumentors.
protected  java.lang.String[] _progArgs
          Arguments to pass to the class main method.
protected static java.lang.String OPTIONS_FORMAT
          String with syntax description
 
Constructor Summary
ACUnitRun()
           
 
Method Summary
abstract  java.lang.String getDefaultInstrumentorName()
          Abstract method deciding what instrumentor to run by default.
protected static void help(java.io.PrintStream out)
          Print a help message to the specified stream.
protected  void readArgs(java.lang.String[] args)
          Read the command line arguments or ask for them in a dialog.
protected  void run(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_className

protected java.lang.String _className
Class to load and execute.


_progArgs

protected java.lang.String[] _progArgs
Arguments to pass to the class main method.


OPTIONS_FORMAT

protected static final java.lang.String OPTIONS_FORMAT
String with syntax description

See Also:
Constant Field Values

_noSaveInstrumented

protected boolean _noSaveInstrumented
Do not save instrumented class files?


_makeBackups

protected boolean _makeBackups
Make backups of original files?


_instrumentorClassName

protected java.lang.String _instrumentorClassName
Instrumentor class name.


_parameters

protected java.util.List<java.lang.String> _parameters
List of parameters to the instrumentors.

Constructor Detail

ACUnitRun

public ACUnitRun()
Method Detail

help

protected static void help(java.io.PrintStream out)
Print a help message to the specified stream.

Parameters:
out - output stream

readArgs

protected void readArgs(java.lang.String[] args)
Read the command line arguments or ask for them in a dialog.

Parameters:
args - command line arguments

run

protected void run(java.lang.String[] args)
Main method.

Parameters:
args - command line arguments

getDefaultInstrumentorName

public abstract java.lang.String getDefaultInstrumentorName()
Abstract method deciding what instrumentor to run by default.

Returns:
the default name of the instrumentor.