Class PackageStats.ClassStats

java.lang.Object
edu.umd.cs.findbugs.PackageStats.ClassStats
All Implemented Interfaces:
XMLWriteable, Cloneable
Enclosing class:
PackageStats

public static class PackageStats.ClassStats extends Object implements XMLWriteable, Cloneable
  • Field Details

    • nBugs

      protected int[] nBugs
  • Constructor Details

    • ClassStats

      public ClassStats(String name, String sourceFile)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • setInterface

      public void setInterface(boolean isInterface)
    • setSize

      public void setSize(int size)
    • size

      public int size()
    • getName

      public String getName()
    • getSourceFile

      @CheckForNull public String getSourceFile()
    • writeXML

      public void writeXML(XMLOutput xmlOutput) throws IOException
      Description copied from interface: XMLWriteable
      Write this object to given XMLOutput.
      Specified by:
      writeXML in interface XMLWriteable
      Parameters:
      xmlOutput - the XMLOutput for the document
      Throws:
      IOException
    • addError

      @OverridingMethodsMustInvokeSuper public void addError(BugInstance bug)
    • ensureNonnullBugCounts

      protected void ensureNonnullBugCounts()
    • getTotalBugs

      public final int getTotalBugs()
    • getBugsAtPriority

      public final int getBugsAtPriority(int p)
    • clearBugCounts

      public void clearBugCounts()
    • writeBugPriorities

      public void writeBugPriorities(XMLOutput xmlOutput) throws IOException
      Add priority attributes to a started tag. Each priority at offset n, where n > 0, is output using attribute priority_n if the value at offset n is greater than zero.
      Parameters:
      xmlOutput - an output stream for which startTag has been called but stopTag has not.
      Throws:
      IOException
    • writeBugPriorities

      public static void writeBugPriorities(XMLOutput xmlOutput, @Nonnull int[] nBugs) throws IOException
      Throws:
      IOException