public class IsNullValue extends java.lang.Object implements IsNullValueAnalysisFeatures, Debug
IsNullValueFrame
,
IsNullValueAnalysis
NCP_EXTRA_BRANCH, NO_SPLIT_DOWNGRADE_NSP, NO_SWITCH_DEFAULT_AS_EXCEPTION, UNKNOWN_VALUES_ARE_NSP, USE_TYPE_QUALIFIERS
VERIFY_INTEGRITY
Modifier and Type | Method and Description |
---|---|
static IsNullValue |
checkedNonNullValue()
Get the instance representing a value known to be non-null because it was
compared against null value, or because we saw the object creation.
|
static IsNullValue |
checkedNullValue()
Get the instance representing a value known to be null because it was
compared against null value, or because we saw that it was assigned the
null constant.
|
IsNullValue |
downgradeOnControlSplit()
Control split: move given value down in the lattice if it is a
conditionally-null value.
|
boolean |
equals(java.lang.Object o) |
Location |
getLocationOfKaBoom() |
int |
hashCode() |
boolean |
isChecked()
Is this value known because of an explicit null check?
|
boolean |
isDefinitelyNotNull()
Is this value definitely not null?
|
boolean |
isDefinitelyNull()
Is this value definitely null?
|
boolean |
isException()
Was this value propagated on an exception path?
|
boolean |
isFieldValue() |
boolean |
isNullOnComplicatedPath()
Is this value null on a complicated path?
|
boolean |
isNullOnComplicatedPath2()
Is this value null on a complicated path?
|
boolean |
isNullOnComplicatedPath23()
Is this value null on a complicated path?
|
boolean |
isNullOnSomePath()
Is this value null on some path?
|
boolean |
isParamValue()
Was this value marked as a possibly null parameter?
|
boolean |
isReadlineValue() |
boolean |
isReturnValue()
Was this value marked as a possibly null return value?
|
IsNullValue |
markInformationAsComingFromFieldValue(XField field)
Convert to a value known because it was returned from a method in a
method property database.
|
IsNullValue |
markInformationAsComingFromReturnValueOfMethod(XMethod methodInvoked)
Convert to a value known because it was returned from a method in a
method property database.
|
static IsNullValue |
merge(IsNullValue a,
IsNullValue b)
Merge two values.
|
boolean |
mightBeNull()
Return true if this value is either definitely null, or might be null on
a simple path.
|
static IsNullValue |
noKaboomNonNullValue(Location ins)
Get the instance representing a value known to be non-null because a NPE
would have occurred if it were null.
|
static IsNullValue |
nonNullValue()
Get the instance representing values that are definitely not null.
|
static IsNullValue |
nonReportingNotNullValue()
Get non-reporting non-null value.
|
static IsNullValue |
nullOnComplexPathValue()
Get null on complex path value.
|
static IsNullValue |
nullOnComplexPathValue3()
Like "null on complex path" except that there are at least three
branches between the explicit null value and the current location.
|
static IsNullValue |
nullOnSimplePathValue()
Get the instance representing values that are definitely null on some
simple (no branches) incoming path.
|
static IsNullValue |
nullValue()
Get the instance representing values that are definitely null.
|
static IsNullValue |
parameterMarkedAsMightBeNull(XMethodParameter mp)
Get instance representing a parameter marked as MightBeNull
|
static IsNullValue |
parameterMarkedAsNonnull(XMethodParameter mp)
Get instance representing a parameter marked as Nonnull
|
static IsNullValue |
pathSensitiveNonNullValue()
Get non-null value resulting from comparison to explicit null.
|
static IsNullValue |
pathSensitiveNullValue()
Get null value resulting from comparison to explicit null.
|
IsNullValue |
toExceptionValue()
Convert to an exception path value.
|
java.lang.String |
toString() |
boolean |
wouldHaveBeenAKaboom()
Is this value known to be non null because a NPE would have occurred
otherwise?
|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isException()
public boolean isReturnValue()
public boolean isReadlineValue()
public boolean isFieldValue()
public boolean isParamValue()
public boolean isChecked()
public boolean wouldHaveBeenAKaboom()
public IsNullValue toExceptionValue()
public IsNullValue markInformationAsComingFromReturnValueOfMethod(XMethod methodInvoked)
methodInvoked
- TODOpublic IsNullValue markInformationAsComingFromFieldValue(XField field)
field
- TODOpublic static IsNullValue nullValue()
public static IsNullValue checkedNullValue()
public static IsNullValue nonNullValue()
public static IsNullValue checkedNonNullValue()
public static IsNullValue noKaboomNonNullValue(@Nonnull Location ins)
public static IsNullValue nullOnSimplePathValue()
public static IsNullValue parameterMarkedAsMightBeNull(XMethodParameter mp)
public static IsNullValue parameterMarkedAsNonnull(XMethodParameter mp)
public static IsNullValue nonReportingNotNullValue()
public static IsNullValue nullOnComplexPathValue()
public static IsNullValue nullOnComplexPathValue3()
public static IsNullValue pathSensitiveNullValue()
public static IsNullValue pathSensitiveNonNullValue()
public static IsNullValue merge(IsNullValue a, IsNullValue b)
public boolean isDefinitelyNull()
public boolean isNullOnSomePath()
public boolean isNullOnComplicatedPath()
public boolean isNullOnComplicatedPath23()
public boolean isNullOnComplicatedPath2()
public boolean mightBeNull()
public boolean isDefinitelyNotNull()
public java.lang.String toString()
toString
in class java.lang.Object
public Location getLocationOfKaBoom()
public IsNullValue downgradeOnControlSplit()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.