public class ValueNumber extends java.lang.Object implements java.lang.Comparable<ValueNumber>
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
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
static int |
mergeFlags(int flags1,
int flags2) |
java.lang.String |
toString() |
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
public static int mergeFlags(int flags1, int flags2)
public static ValueNumber createValueNumber(int number, int flags)
public static ValueNumber createValueNumber(int number)
public int getNumber()
public int getFlags()
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™ is licenced under the LGPL. Copyright © 2006 University of Maryland.