|
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.vna.ValueNumber
public class ValueNumber
A "value number" is a value produced somewhere in a methods. We use value numbers as dataflow values in Frames. When two frame slots have the same value number, then the same value is in both of those slots.
Instances of ValueNumbers produced by the same
ValueNumberFactory
are unique, so reference equality may
be used to determine whether or not two value numbers are the same.
In general, ValueNumbers from different factories cannot be compared.
ValueNumberAnalysis
Field Summary | |
---|---|
static int |
ARRAY_VALUE
|
static int |
CONSTANT_CLASS_OBJECT
|
static int |
CONSTANT_VALUE
|
static int |
PHI_NODE
|
static int |
RETURN_VALUE
Flag specifying that this value was the return value of a called method. |
Method Summary | |
---|---|
int |
compareTo(ValueNumber other)
|
static ValueNumber |
createValueNumber(int number)
|
static ValueNumber |
createValueNumber(int number,
int flags)
|
boolean |
equals(java.lang.Object o)
|
int |
getFlags()
|
int |
getNumber()
|
boolean |
hasFlag(int flag)
|
int |
hashCode()
|
void |
setFlag(int flag)
Deprecated. |
void |
setFlags(int flags)
Deprecated. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int RETURN_VALUE
public static final int ARRAY_VALUE
public static final int CONSTANT_CLASS_OBJECT
public static final int PHI_NODE
public static final int CONSTANT_VALUE
Method Detail |
---|
public static ValueNumber createValueNumber(int number, int flags)
public static ValueNumber createValueNumber(int number)
public int getNumber()
public int getFlags()
@Deprecated public void setFlags(int flags)
@Deprecated public void setFlag(int flag)
public boolean hasFlag(int flag)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(ValueNumber other)
compareTo
in interface java.lang.Comparable<ValueNumber>
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |