Class ConstantValue
java.lang.Object
com.ibm.wala.ssa.ConstantValue
- All Implemented Interfaces:
Value
-
Constructor Summary
ConstructorsConstructorDescriptionConstantValue(double constant) ConstantValue(int constant) ConstantValue(Object constant) -
Method Summary
-
Constructor Details
-
ConstantValue
-
ConstantValue
public ConstantValue(int constant) -
ConstantValue
public ConstantValue(double constant)
-
-
Method Details
-
getValue
- Returns:
- an object which represents the constant value
-
toString
-
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"
-
equals
-
hashCode
-