| java.lang.Object com.puppycrawl.tools.checkstyle.api.AutomaticBean com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
All known Subclasses: com.puppycrawl.tools.checkstyle.checks.duplicates.StrictDuplicateCodeCheck, com.puppycrawl.tools.checkstyle.checks.javadoc.PackageHtmlCheck, com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck, com.puppycrawl.tools.checkstyle.checks.TranslationCheck, com.mycompany.checks.LimitImplementationFiles, com.puppycrawl.tools.checkstyle.bcel.ClassFileSetCheck, com.puppycrawl.tools.checkstyle.checks.header.CrossLanguageRegexpHeaderCheck, com.puppycrawl.tools.checkstyle.TreeWalker,
filter | final protected File[] filter(File[] aFiles)(Code) | | Determines the set of files this FileSetCheck is interested in.
Returns the files that have one of the currently active file extensions.
If no file extensions are active the argument array is returned.
This method can be used in the implementation of process()
to filter it's argument list for interesting files.
Parameters: aFiles - the candidates for processing the subset of aFiles that this FileSetCheck should process See Also: FileSetCheck.process |
fireErrors | final protected void fireErrors(String aFileName)(Code) | | Notify all listeners about the errors in a file.
Calls MessageDispatcher.fireErrors() with
all logged errors and than clears errors' list.
Parameters: aFileName - the audited file |
getCharset | public String getCharset()(Code) | | the name of the charset |
getMessageCollector | final protected LocalizedMessages getMessageCollector()(Code) | | Returns the collector for violation messages.
Subclasses can use the collector to find out the violation
messages to fire via the message dispatcher.
the collector for localized messages. |
getMessageDispatcher | final protected MessageDispatcher getMessageDispatcher()(Code) | | A message dispatcher is used to fire violation messages to
interested audit listeners.
the current MessageDispatcher. |
setFileExtensions | final public void setFileExtensions(String[] aExtensions)(Code) | | Sets the file extensions that identify the files that pass the
filter of this FileSetCheck.
Parameters: aExtensions - the set of file extensions. A missinginitial '.' character of an extension is automatically added. |
Methods inherited from com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter | final public String getId()(Code)(Java Doc) protected String getMessageBundle()(Code)(Java Doc) String getMessageBundle(String aClassName)(Code)(Java Doc) final public String getSeverity()(Code)(Java Doc) final public SeverityLevel getSeverityLevel()(Code)(Java Doc) final protected void log(int aLine, String aKey)(Code)(Java Doc) final protected void log(int aLineNo, String aKey, Object aArg0)(Code)(Java Doc) final protected void log(int aLineNo, String aKey, Object aArg0, Object aArg1)(Code)(Java Doc) final protected void log(int aLineNo, int aColNo, String aKey)(Code)(Java Doc) final protected void log(DetailAST aAST, String aKey)(Code)(Java Doc) final protected void log(int aLineNo, int aColNo, String aKey, Object aArg0)(Code)(Java Doc) final protected void log(DetailAST aAST, String aKey, Object aArg0)(Code)(Java Doc) final protected void log(int aLineNo, int aColNo, String aKey, Object aArg0, Object aArg1)(Code)(Java Doc) final protected void log(DetailAST aAST, String aKey, Object aArg0, Object aArg1)(Code)(Java Doc) abstract protected void log(int aLine, String aKey, Object aArgs)(Code)(Java Doc) abstract protected void log(int aLine, int aCol, String aKey, Object[] aArgs)(Code)(Java Doc) final public void setId(String aId)(Code)(Java Doc) final public void setSeverity(String aSeverity)(Code)(Java Doc)
|
|
|