Package edu.umd.cs.findbugs
Class PackageStats.ClassStats
java.lang.Object
edu.umd.cs.findbugs.PackageStats.ClassStats
- All Implemented Interfaces:
XMLWriteable,Cloneable
- Enclosing class:
PackageStats
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(BugInstance bug) voidclone()protected voidfinal intgetBugsAtPriority(int p) getName()final intvoidsetInterface(boolean isInterface) voidsetSize(int size) intsize()voidwriteBugPriorities(XMLOutput xmlOutput) Add priority attributes to a started tag.static voidwriteBugPriorities(XMLOutput xmlOutput, int[] nBugs) voidWrite this object to given XMLOutput.
-
Field Details
-
nBugs
protected int[] nBugs
-
-
Constructor Details
-
ClassStats
-
-
Method Details
-
clone
-
setInterface
public void setInterface(boolean isInterface) -
setSize
public void setSize(int size) -
size
public int size() -
getName
-
getSourceFile
-
writeXML
Description copied from interface:XMLWriteableWrite this object to given XMLOutput.- Specified by:
writeXMLin interfaceXMLWriteable- Parameters:
xmlOutput- the XMLOutput for the document- Throws:
IOException
-
addError
-
ensureNonnullBugCounts
protected void ensureNonnullBugCounts() -
getTotalBugs
public final int getTotalBugs() -
getBugsAtPriority
public final int getBugsAtPriority(int p) -
clearBugCounts
public void clearBugCounts() -
writeBugPriorities
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
- Throws:
IOException
-