Class CheckstyleAntTask.Formatter
java.lang.Object
com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask.Formatter
- Enclosing class:
- CheckstyleAntTask
Details about a formatter to be used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateListener
(org.apache.tools.ant.Task task) Creates a listener for the formatter.void
Set the file to output to.void
Set the type of the formatter.void
setUseFile
(boolean use) Sets whether or not we write to a file if it is provided.
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
setType
Set the type of the formatter.- Parameters:
type
- the type
-
setTofile
Set the file to output to.- Parameters:
destination
- destination the file to output to
-
setUseFile
public void setUseFile(boolean use) Sets whether or not we write to a file if it is provided.- Parameters:
use
- whether not not to use provided file.
-
createListener
Creates a listener for the formatter.- Parameters:
task
- the task running- Returns:
- a listener
- Throws:
IOException
- if an error occurs
-