|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.jslint4java.ant.PlainResultFormatter
public class PlainResultFormatter
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.
If a file is specified, all output will go there. If not, then all output will go to stdout.
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(JSLintResult result)
Emit all issues to the console. |
void |
setFile(File file)
Called during initialization. |
void |
setStdout(OutputStream defaultOutputStream)
If you want to write to stdout, you can't just use System.out, because we're in the middle of ant task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OutputStream out
protected PrintWriter w
Constructor Detail |
---|
public PlainResultFormatter()
Method Detail |
---|
public void begin()
ResultFormatter
JSLintTask
execution.
begin
in interface ResultFormatter
public void end()
ResultFormatter
JSLintTask
execution.
end
in interface ResultFormatter
public void output(JSLintResult result)
output
in interface ResultFormatter
result
- The details if this JSLint run.public void setFile(File file)
ResultFormatter
setFile
in interface ResultFormatter
file
- The file to write to.public void setStdout(OutputStream defaultOutputStream)
ResultFormatter
setStdout
in interface ResultFormatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |