public class IsNullConditionDecision
extends java.lang.Object
IsNullValue
,
IsNullValueFrame
,
IsNullValueAnalysis
Constructor and Description |
---|
IsNullConditionDecision(ValueNumber value,
IsNullValue ifcmpDecision,
IsNullValue fallThroughDecision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
IsNullValue |
getDecision(int edgeType)
Get the decision reached about the value on outgoing edge of given type.
|
ValueNumber |
getValue()
Get the value about which the branch yields information.
|
int |
hashCode() |
boolean |
isEdgeFeasible(int edgeType)
Determine whether or not the given edge is feasible.
|
boolean |
isRedundant()
Determine whether or not the comparison is redundant.
|
java.lang.String |
toString() |
public IsNullConditionDecision(@CheckForNull ValueNumber value, @CheckForNull IsNullValue ifcmpDecision, @CheckForNull IsNullValue fallThroughDecision)
value
- the ValueNumber for which we have new information; null if no
new informationifcmpDecision
- the decision for the IFCMP_EDGE; null if that edge is not
feasiblefallThroughDecision
- the decision for the FALL_THROUGH_EDGE; null if that edge is
not feasiblepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public ValueNumber getValue()
public boolean isRedundant()
public boolean isEdgeFeasible(int edgeType)
edgeType
- the type of edge; must be IFCMP_EDGE or FALL_THROUGH_EDGE@CheckForNull public IsNullValue getDecision(int edgeType)
edgeType
- the type of edge; must be IFCMP_EDGE or FALL_THROUGH_EDGEpublic java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.