Package edu.umd.cs.findbugs.gui
Class BugInstanceGroup
- java.lang.Object
-
- edu.umd.cs.findbugs.gui.BugInstanceGroup
-
public class BugInstanceGroup extends java.lang.ObjectA BugInstanceGroup represents a node in the bug tree which groups related bug instances. For example, it might group all of the bug instances for the same class.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description BugInstanceGroup(java.lang.String groupType, java.lang.String groupName)Creates a new instance of BugInstanceGroup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetGroupType()Get the group type.intgetMemberCount()Get the member count (number of bug instances in this group).voidincrementMemberCount()Increment the member count (number of bug instances in this group).java.lang.StringtoString()Convert to string.
-
-
-
Constructor Detail
-
BugInstanceGroup
public BugInstanceGroup(java.lang.String groupType, java.lang.String groupName)Creates a new instance of BugInstanceGroup.- Parameters:
groupType- string indicating why the bug instances in the group are relatedgroupName- name of the group (e.g., the class name if the group is all bug instances in the same class)
-
-
Method Detail
-
getGroupType
public java.lang.String getGroupType()
Get the group type.
-
incrementMemberCount
public void incrementMemberCount()
Increment the member count (number of bug instances in this group).
-
getMemberCount
public int getMemberCount()
Get the member count (number of bug instances in this group).
-
toString
public java.lang.String toString()
Convert to string.- Overrides:
toStringin classjava.lang.Object
-
-