|
Simian - Similarity Analyser v2.2.21 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.com.redhillconsulting.simian.CompositeAuditListener
public final class CompositeAuditListener
Wraps a list of audit listeners ensuring each of them is notified of audit events.
Constructor Summary | |
---|---|
CompositeAuditListener()
Default constructor. |
|
CompositeAuditListener(java.util.Collection components)
Constructor. |
Method Summary | |
---|---|
void |
add(AuditListener listener)
Adds a listener. |
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 |
fileProcessed(SourceFile sourceFile)
Called when a file has been loaded. |
void |
startCheck(Options options)
Called when checking begins. |
void |
startSet(int lineCount)
Called to indicate the start of a set of blocks of duplicate lines. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeAuditListener(java.util.Collection components)
components
- The component audit listeners.public CompositeAuditListener()
Method Detail |
---|
public void add(AuditListener listener)
listener
- The listener to add.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)
AuditListener
startSet
in interface AuditListener
lineCount
- The number of lines the blocks have in commonpublic 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
|
Simian - Similarity Analyser v2.2.21 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |