|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.puppycrawl.tools.checkstyle.Checker
This class provides the functionality to check a set of files.
Field Summary |
Constructor Summary | |
Checker(Configuration aConfig)
Constructs the object. |
Method Summary | |
void |
addListener(AuditListener aListener)
Add the listener that will be used to receive events from the audit |
void |
destroy()
Cleans up the object |
protected void |
fireAuditFinished()
notify all listeners about the audit end |
protected void |
fireAuditStarted()
notify all listeners about the audit start |
protected void |
fireErrors(java.lang.String aFileName,
LocalizedMessage[] aErrors)
notify all listeners about the errors in a file. |
protected void |
fireFileFinished(java.lang.String aFileName)
notify all listeners about the end of a file audit |
protected void |
fireFileStarted(java.lang.String aFileName)
notify all listeners about the beginning of a file audit |
int |
process(java.lang.String[] aFiles)
Processes a set of files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Checker(Configuration aConfig) throws org.apache.regexp.RESyntaxException, java.io.IOException
aConfig
- contains the configuration to check with
org.apache.regexp.RESyntaxException
- unable to create a regexp object
java.io.IOException
- if an error occursMethod Detail |
public void destroy()
public void addListener(AuditListener aListener)
aListener
- the nosy thingpublic int process(java.lang.String[] aFiles)
aFiles
- the list of files to be audited.
destroy()
protected void fireAuditStarted()
protected void fireAuditFinished()
protected void fireFileStarted(java.lang.String aFileName)
aFileName
- the file to be auditedprotected void fireFileFinished(java.lang.String aFileName)
aFileName
- the audited fileprotected void fireErrors(java.lang.String aFileName, LocalizedMessage[] aErrors)
aFileName
- the audited fileaErrors
- the audit errors from the file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |