|
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.ba.npe.ParameterNullnessProperty
public class ParameterNullnessProperty
Method property recording which parameters are (or should be) non-null, meaning that null values should not be passed as their arguments.
Field Summary | |
---|---|
static int |
MAX_PARAMS
Maximum number of parameters that can be represented by a ParameterNullnessProperty. |
Constructor Summary | |
---|---|
ParameterNullnessProperty()
Constructor. |
Method Summary | |
---|---|
void |
copyFrom(ParameterNullnessProperty other)
Make this object the same as the given one. |
java.util.BitSet |
getAsBitSet()
|
java.util.BitSet |
getViolatedParamSet(java.util.BitSet nullArgSet)
Given a bitset of null arguments passed to the method represented by this property, return a bitset indicating which null arguments correspond to an non-null param. |
void |
intersectWith(ParameterNullnessProperty targetDerefParamSet)
Intersect this set with the given set. |
boolean |
isEmpty()
Return whether or not the set of non-null parameters is empty. |
boolean |
isNonNull(int param)
Return whether or not a parameter might be non-null. |
java.lang.Iterable<java.lang.Integer> |
iterable()
|
void |
setNonNull(int param,
boolean nonNull)
Set whether or not a parameter might be non-null. |
void |
setNonNullParamSet(java.util.BitSet nonNullSet)
Set the non-null param set from given BitSet. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_PARAMS
Constructor Detail |
---|
public ParameterNullnessProperty()
Method Detail |
---|
public java.lang.Iterable<java.lang.Integer> iterable()
public void setNonNullParamSet(java.util.BitSet nonNullSet)
nonNullSet
- BitSet indicating which parameters are
non-nullpublic void setNonNull(int param, boolean nonNull)
param
- the parameter indexnonNull
- true if the parameter might be non-null, false otherwisepublic boolean isNonNull(int param)
param
- the parameter index
public java.util.BitSet getViolatedParamSet(java.util.BitSet nullArgSet)
nullArgSet
- bitset of null arguments
public java.util.BitSet getAsBitSet()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public void intersectWith(ParameterNullnessProperty targetDerefParamSet)
targetDerefParamSet
- another setpublic void copyFrom(ParameterNullnessProperty other)
other
- another ParameterNullnessProperty
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |