public interface AuditListener
Modifier and Type | Method and Description |
---|---|
void |
block(Block block)
Called once for each block of duplicate lines within a set.
|
void |
endCheck(CheckSummary summary)
Called when checking has finished.
|
void |
endSet(java.lang.String text)
Called to indicate the end of a set of blocks of duplicate lines.
|
void |
error(java.io.File file,
java.lang.Throwable e)
Called when an error occurs processing a file.
|
void |
fileProcessed(SourceFile sourceFile)
Called when a file has been loaded.
|
void |
startCheck(Options options)
Called when checking begins.
|
void |
startSet(int lineCount,
java.lang.String fingerprint)
Called to indicate the start of a set of blocks of duplicate lines.
|
void startCheck(Options options)
options
- The options used when performing the checkvoid fileProcessed(SourceFile sourceFile)
sourceFile
- The file that was just loadedvoid startSet(int lineCount, java.lang.String fingerprint)
lineCount
- The number of lines the blocks have in commonfingerprint
- The unique fingerprint for the blocks in this setvoid block(Block block)
block
- the duplicated block.void endSet(java.lang.String text)
text
- The textvoid endCheck(CheckSummary summary)
summary
- A summary of check statisticsvoid error(java.io.File file, java.lang.Throwable e)
file
- The file being processede
- The error that was raisedCopyright (c) 2003-2018 Simon Harris. All rights reserved.