Class ConstantValue
java.lang.Object
com.ibm.wala.ssa.ConstantValue
-
Constructor Summary
ConstructorDescriptionConstantValue
(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: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"
-
equals
-
hashCode
-