Package edu.umd.cs.findbugs
Class TextUIProgressCallback
- java.lang.Object
-
- edu.umd.cs.findbugs.TextUIProgressCallback
-
- All Implemented Interfaces:
IClassPathBuilderProgress,FindBugsProgress
public class TextUIProgressCallback extends java.lang.Object implements FindBugsProgress
Display FindBugs progress in the terminal window using ASCII codes. We assume that the terminal window is at least 80 characters wide.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description TextUIProgressCallback(java.io.PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishArchive()Report that FindBugs has finished scanning an archive in order to add its classes to the repository.voidfinishClass()Report that FindBugs has finished analyzing a class.voidfinishPerClassAnalysis()Called to indicate that the per-class analysis is finished, and that the whole program analysis is taking place.voidpredictPassCount(int[] classesPerPass)Provide an array that predicts the number of classes in each passvoidreportNumberOfArchives(int numArchives)Report the total number of archives (Jar or zip files) that will be analyzed.voidstartAnalysis(int numClasses)Report that FindBugs has finished scanning the archives and will start analysing the classes contained therein.voidstartArchive(java.lang.String name)Report that FindBugs has started scanning an archive in order to add its classes to the repository.
-
-
-
Method Detail
-
reportNumberOfArchives
public void reportNumberOfArchives(int numArchives)
Description copied from interface:FindBugsProgressReport the total number of archives (Jar or zip files) that will be analyzed.- Specified by:
reportNumberOfArchivesin interfaceFindBugsProgress- Parameters:
numArchives- the number of archives
-
finishArchive
public void finishArchive()
Description copied from interface:FindBugsProgressReport that FindBugs has finished scanning an archive in order to add its classes to the repository.- Specified by:
finishArchivein interfaceFindBugsProgress- Specified by:
finishArchivein interfaceIClassPathBuilderProgress
-
predictPassCount
public void predictPassCount(int[] classesPerPass)
Description copied from interface:FindBugsProgressProvide an array that predicts the number of classes in each pass- Specified by:
predictPassCountin interfaceFindBugsProgress
-
startAnalysis
public void startAnalysis(int numClasses)
Description copied from interface:FindBugsProgressReport that FindBugs has finished scanning the archives and will start analysing the classes contained therein.- Specified by:
startAnalysisin interfaceFindBugsProgress- Parameters:
numClasses- number of classes found in all of the archives
-
finishClass
public void finishClass()
Description copied from interface:FindBugsProgressReport that FindBugs has finished analyzing a class.- Specified by:
finishClassin interfaceFindBugsProgress
-
finishPerClassAnalysis
public void finishPerClassAnalysis()
Description copied from interface:FindBugsProgressCalled to indicate that the per-class analysis is finished, and that the whole program analysis is taking place.- Specified by:
finishPerClassAnalysisin interfaceFindBugsProgress
-
startArchive
public void startArchive(java.lang.String name)
Description copied from interface:FindBugsProgressReport that FindBugs has started scanning an archive in order to add its classes to the repository.- Specified by:
startArchivein interfaceFindBugsProgress- Specified by:
startArchivein interfaceIClassPathBuilderProgress
-
-