com.googlecode.jslint4java.ant
Class PlainResultFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.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

Field Summary
protected  OutputStream out
           
protected  PrintWriter w
           
 
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(String name, List<Issue> issues)
          Emit all issues to the console.
 void setOut(OutputStream os)
          Called during initialization.
protected  String spaces(int howmany)
          Return a string of howmany spaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected OutputStream out

w

protected PrintWriter w
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(String name,
                   List<Issue> issues)
Emit all issues to the console.

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

setOut

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

Specified by:
setOut in interface ResultFormatter

spaces

protected String spaces(int howmany)
Return a string of howmany spaces.

Parameters:
howmany -


Copyright © 2007-2009. All Rights Reserved.