net.happygiraffe.jslint.ant
Class PlainResultFormatter

java.lang.Object
  extended by net.happygiraffe.jslint.ant.PlainResultFormatter
All Implemented Interfaces:
ResultFormatter

public class PlainResultFormatter
extends Object
implements ResultFormatter

Output all JSLint errors to the console. Shows the error, the line on which it occurred and a pointer to the character at which it occurred.

Version:
$Id$
Author:
dom

Constructor Summary
PlainResultFormatter()
           
 
Method Summary
 void begin()
          Called at the start of JSLintTask execution.
 void end()
          Called at the end of JSLintTask execution.
 void output(File file, List<Issue> issues)
          Emit all issues to the console.
 void setOut(OutputStream os)
          Called during initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainResultFormatter

public PlainResultFormatter()
Method Detail

begin

public void begin()
Description copied from interface: ResultFormatter
Called at the start of JSLintTask execution.

Specified by:
begin in interface ResultFormatter

end

public void end()
Description copied from interface: ResultFormatter
Called at the end of JSLintTask execution.

Specified by:
end in interface ResultFormatter

output

public void output(File file,
                   List<Issue> issues)
Emit all issues to the console.

Specified by:
output in interface ResultFormatter
Parameters:
file - The file just examined.
issues - A list of issues fond with this file. May be empty.
See Also:
ResultFormatter.output(File, List)

setOut

public void setOut(OutputStream os)
Description copied from interface: ResultFormatter
Called during initialization.

Specified by:
setOut in interface ResultFormatter