org.incava.analysis

Class TerseReport

public class TerseReport extends Report

Reports errors in a single line, AKA the format expected by Emacs (!c).
Constructor Summary
TerseReport(Writer writer)
Creates a terse report for the given writer.
TerseReport(OutputStream os)
Creates a terse report for the given output stream.
TerseReport(Writer writer, String source)
Creates a terse report for the given writer, and a string source.
TerseReport(Writer writer, File file)
Creates a terse report for the given writer, and a file source.
TerseReport(OutputStream os, String source)
Creates a terse report for the given output stream, and string source.
TerseReport(OutputStream os, File file)
Creates a terse report for the given output stream, and file.
Method Summary
protected StringtoString(Violation violation)
Returns the given violation, in single-line format.

Constructor Detail

TerseReport

public TerseReport(Writer writer)
Creates a terse report for the given writer.

Parameters: writer The writer associated with this report.

TerseReport

public TerseReport(OutputStream os)
Creates a terse report for the given output stream.

Parameters: os The output stream associated with this report.

TerseReport

public TerseReport(Writer writer, String source)
Creates a terse report for the given writer, and a string source.

Parameters: writer The writer associated with this report. source The source code to which this report applies.

TerseReport

public TerseReport(Writer writer, File file)
Creates a terse report for the given writer, and a file source.

Parameters: writer The writer associated with this report. file The file, containing source code, to which this report applies.

TerseReport

public TerseReport(OutputStream os, String source)
Creates a terse report for the given output stream, and string source.

Parameters: os The output stream associated with this report. source The source code to which this report applies.

TerseReport

public TerseReport(OutputStream os, File file)
Creates a terse report for the given output stream, and file.

Parameters: os The output stream associated with this report. file The file, containing source code, to which this report applies.

Method Detail

toString

protected String toString(Violation violation)
Returns the given violation, in single-line format. For example:
     TerseReport.java:77:22:77:29: Undocumented protected method
 

Parameters: violation The violation to represent as a single-line violation.

Returns: The violation, in single-line format.