Package com.ibm.wala.ssa
Class ConstantValue
- java.lang.Object
-
- com.ibm.wala.ssa.ConstantValue
-
-
Constructor Summary
Constructors Constructor Description ConstantValue(double constant)
ConstantValue(int constant)
ConstantValue(Object constant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Object
getValue()
int
hashCode()
boolean
isFalseConstant()
boolean
isNullConstant()
Is this value a null constant?boolean
isOneConstant()
boolean
isStringConstant()
Is this value a string constant?boolean
isTrueConstant()
boolean
isZeroConstant()
String
toString()
-
-
-
Constructor Detail
-
ConstantValue
public ConstantValue(Object constant)
-
ConstantValue
public ConstantValue(int constant)
-
ConstantValue
public ConstantValue(double constant)
-
-
Method Detail
-
getValue
public Object getValue()
- Returns:
- an object which represents the constant value
-
isStringConstant
public boolean isStringConstant()
Description copied from interface:Value
Is this value a string constant?- Specified by:
isStringConstant
in interfaceValue
-
isFalseConstant
public boolean isFalseConstant()
- Returns:
- true iff this constant is "false"
-
isTrueConstant
public boolean isTrueConstant()
- Returns:
- true iff this constant is "true"
-
isZeroConstant
public boolean isZeroConstant()
- Returns:
- true iff this constant is "zero"
-
isNullConstant
public boolean isNullConstant()
Description copied from interface:Value
Is this value a null constant?- Specified by:
isNullConstant
in interfaceValue
- Returns:
- true iff this constant is "null"
-
isOneConstant
public boolean isOneConstant()
- Returns:
- true iff this constant is "one"
-
-