|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.props.WarningPropertySet<T>
public class WarningPropertySet<T extends WarningProperty>
A Set of WarningProperty objects, each with an optional attribute Object. A WarningPropertySet is useful for collecting heuristics to use in the determination of whether or not a warning is a false positive, or what the warning's priority should be.
Constructor Summary | |
---|---|
WarningPropertySet()
Constructor Creates empty object. |
Method Summary | |
---|---|
WarningPropertySet<T> |
addProperty(T prop)
Add a warning property to the set. |
boolean |
checkProperty(T prop,
java.lang.Object value)
Check whether or not the given WarningProperty has the given attribute value. |
java.lang.Object |
clone()
|
int |
computePriority(int basePriority)
Use the PriorityAdjustments specified by the set's WarningProperty elements to compute a warning priority from the given base priority. |
boolean |
containsProperty(T prop)
Return whether or not the set contains the given WarningProperty. |
void |
decorateBugInstance(BugInstance bugInstance)
Decorate given BugInstance with properties. |
java.lang.Object |
getProperty(T prop)
Get the value of the attribute for the given WarningProperty. |
boolean |
isFalsePositive(int priority)
Determine whether or not a warning with given priority is expected to be a false positive. |
WarningPropertySet<T> |
removeProperty(T prop)
Remove a warning property from the set. |
void |
setProperty(T prop,
java.lang.Boolean value)
Add a warning property and its attribute value. |
WarningPropertySet<T> |
setProperty(T prop,
java.lang.String value)
Add a warning property and its attribute value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WarningPropertySet()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public WarningPropertySet<T> addProperty(T prop)
prop
- the WarningProperty
public WarningPropertySet<T> removeProperty(T prop)
prop
- the WarningProperty
public WarningPropertySet<T> setProperty(T prop, java.lang.String value)
prop
- the WarningPropertyvalue
- the attribute value
public void setProperty(T prop, java.lang.Boolean value)
prop
- the WarningPropertyvalue
- the attribute value@CheckReturnValue public boolean containsProperty(T prop)
prop
- the WarningProperty
public boolean checkProperty(T prop, java.lang.Object value)
prop
- the WarningPropertyvalue
- the attribute value
public java.lang.Object getProperty(T prop)
prop
- the WarningProperty
public int computePriority(int basePriority)
basePriority
- the base priority
public boolean isFalsePositive(int priority)
priority
- the priority
public void decorateBugInstance(BugInstance bugInstance)
bugInstance
- the BugInstance
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |