public class DecoratorAuditListener extends java.lang.Object implements AuditListener
Constructor and Description |
---|
DecoratorAuditListener(AuditListener listener) |
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.
|
public DecoratorAuditListener(AuditListener listener)
public void startCheck(Options options)
AuditListener
startCheck
in interface AuditListener
options
- The options used when performing the checkpublic void fileProcessed(SourceFile sourceFile)
AuditListener
fileProcessed
in interface AuditListener
sourceFile
- The file that was just loadedpublic void startSet(int lineCount, java.lang.String fingerprint)
AuditListener
startSet
in interface AuditListener
lineCount
- The number of lines the blocks have in commonfingerprint
- The unique fingerprint for the blocks in this setpublic void block(Block block)
AuditListener
block
in interface AuditListener
block
- the duplicated block.public void endSet(java.lang.String text)
AuditListener
endSet
in interface AuditListener
text
- The textpublic void endCheck(CheckSummary summary)
AuditListener
endCheck
in interface AuditListener
summary
- A summary of check statisticspublic void error(java.io.File file, java.lang.Throwable e)
AuditListener
error
in interface AuditListener
file
- The file being processede
- The error that was raisedCopyright (c) 2003-2018 Simon Harris. All rights reserved.