Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private int goal  
      private int numPasses  
      private java.io.PrintStream out  
      private int pass  
    • Constructor Summary

      Constructors 
      Constructor Description
      TextUIProgressCallback​(java.io.PrintStream out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void analyzingClasses​(int i)  
      void finishArchive()
      Report that FindBugs has finished scanning an archive in order to add its classes to the repository.
      void finishClass()
      Report that FindBugs has finished analyzing a class.
      void finishPerClassAnalysis()
      Called to indicate that the per-class analysis is finished, and that the whole program analysis is taking place.
      void predictPassCount​(int[] classesPerPass)
      Provide an array that predicts the number of classes in each pass
      private void printMessage​(java.lang.String msg)  
      void reportNumberOfArchives​(int numArchives)
      Report the total number of archives (Jar or zip files) that will be analyzed.
      private void scanningArchives​(int i)  
      void startAnalysis​(int numClasses)
      Report that FindBugs has finished scanning the archives and will start analysing the classes contained therein.
      void startArchive​(java.lang.String name)
      Report that FindBugs has started scanning an archive in order to add its classes to the repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        private final java.io.PrintStream out
      • goal

        private int goal
      • count

        private int count
      • numPasses

        private int numPasses
      • pass

        private int pass
    • Constructor Detail

      • TextUIProgressCallback

        public TextUIProgressCallback​(java.io.PrintStream out)
    • Method Detail

      • reportNumberOfArchives

        public void reportNumberOfArchives​(int numArchives)
        Description copied from interface: FindBugsProgress
        Report the total number of archives (Jar or zip files) that will be analyzed.
        Specified by:
        reportNumberOfArchives in interface FindBugsProgress
        Parameters:
        numArchives - the number of archives
      • predictPassCount

        public void predictPassCount​(int[] classesPerPass)
        Description copied from interface: FindBugsProgress
        Provide an array that predicts the number of classes in each pass
        Specified by:
        predictPassCount in interface FindBugsProgress
      • startAnalysis

        public void startAnalysis​(int numClasses)
        Description copied from interface: FindBugsProgress
        Report that FindBugs has finished scanning the archives and will start analysing the classes contained therein.
        Specified by:
        startAnalysis in interface FindBugsProgress
        Parameters:
        numClasses - number of classes found in all of the archives
      • finishPerClassAnalysis

        public void finishPerClassAnalysis()
        Description copied from interface: FindBugsProgress
        Called to indicate that the per-class analysis is finished, and that the whole program analysis is taking place.
        Specified by:
        finishPerClassAnalysis in interface FindBugsProgress
      • scanningArchives

        private void scanningArchives​(int i)
      • analyzingClasses

        private void analyzingClasses​(int i)
      • printMessage

        private void printMessage​(java.lang.String msg)