com.googlecode.jslint4java.ant
Class PlainResultFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.ant.PlainResultFormatter
All Implemented Interfaces:
ResultFormatter

public class PlainResultFormatter
extends java.lang.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  java.io.OutputStream out
           
protected  java.io.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(java.lang.String name, java.util.List<Issue> issues)
          Emit all issues to the console.
 void setOut(java.io.OutputStream os)
          Called during initialization.
protected  java.lang.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 java.io.OutputStream out

w

protected java.io.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(java.lang.String name,
                   java.util.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(java.io.OutputStream os)
Description copied from interface: ResultFormatter
Called during initialization.

Specified by:
setOut in interface ResultFormatter

spaces

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

Parameters:
howmany -


Copyright © 2007-2009. All Rights Reserved.