com.googlecode.jslint4java.formatter
Class PlainFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.formatter.PlainFormatter
All Implemented Interfaces:
JSLintResultFormatter

public class PlainFormatter
extends Object
implements JSLintResultFormatter

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.

Author:
dom

Constructor Summary
PlainFormatter()
           
 
Method Summary
 String footer()
          No footer required.
 String format(JSLintResult result)
          Convert JSLintResult into a suitably formatted String representation.
 String header()
          No footer required.
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
 

Constructor Detail

PlainFormatter

public PlainFormatter()
Method Detail

footer

public String footer()
No footer required.

Specified by:
footer in interface JSLintResultFormatter

format

public String format(JSLintResult result)
Description copied from interface: JSLintResultFormatter
Convert JSLintResult into a suitably formatted String representation.

Specified by:
format in interface JSLintResultFormatter

header

public String header()
No footer required.

Specified by:
header in interface JSLintResultFormatter

spaces

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

Parameters:
howmany -


Copyright © 2007-2012. All Rights Reserved.