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 booleanequals(Object obj)ObjectgetValue()inthashCode()booleanisFalseConstant()booleanisNullConstant()Is this value a null constant?booleanisOneConstant()booleanisStringConstant()Is this value a string constant?booleanisTrueConstant()booleanisZeroConstant()StringtoString()
-
-
-
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:ValueIs this value a string constant?- Specified by:
isStringConstantin 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:ValueIs this value a null constant?- Specified by:
isNullConstantin interfaceValue- Returns:
- true iff this constant is "null"
-
isOneConstant
public boolean isOneConstant()
- Returns:
- true iff this constant is "one"
-
-