|
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.constant.Constant
public class Constant
Abstract dataflow value representing a value which may or may not be a constant.
ConstantAnalysis
Field Summary | |
---|---|
static Constant |
NOT_CONSTANT
Single instance representing all non-constant values. |
Constructor Summary | |
---|---|
Constant(java.lang.Object value)
Constructor for a constant value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getConstantInt()
Get the constant int value of this value. |
java.lang.String |
getConstantString()
Get the constant String value of this value. |
int |
hashCode()
|
boolean |
isConstant()
Return whether or not this value is a constant. |
boolean |
isConstantInteger()
Return whether or not this value is a constant int/Integer. |
boolean |
isConstantString()
Return whether or not this value is a constant String. |
static Constant |
merge(Constant a,
Constant b)
Merge two Constants. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Constant NOT_CONSTANT
Constructor Detail |
---|
public Constant(@Nullable java.lang.Object value)
value
- the constant value; must be a String, Integer, etc.Method Detail |
---|
public boolean isConstant()
public boolean isConstantString()
public java.lang.String getConstantString()
public boolean isConstantInteger()
public int getConstantInt()
public static Constant merge(Constant a, Constant b)
a
- a Constantb
- another Constant
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |