Class Constant
java.lang.Object
org.checkerframework.dataflow.constantpropagation.Constant
- All Implemented Interfaces:
- AbstractValue<Constant>
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Constant.TypeWhat kind of abstract value is this?The value of this abstract value (or null).
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a constant forvalue.Constant(Constant.Type type) Create a constant fortype.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()booleangetValue()Returns the value.inthashCode()booleanisBottom()Returns whether or not the constant is BOTTOM.booleanReturns whether or not the constant is CONSTANT.booleanisTop()Returns whether or not the constant is TOP.leastUpperBound(Constant other) Compute the least upper bound of two values.toString()
- 
Field Details- 
typeWhat kind of abstract value is this?
- 
valueThe value of this abstract value (or null).
 
- 
- 
Constructor Details- 
ConstantCreate a constant fortype.
- 
ConstantCreate a constant forvalue.
 
- 
- 
Method Details- 
isToppublic boolean isTop()Returns whether or not the constant is TOP.- Returns:
- whether or not the constant is TOP
 
- 
isBottompublic boolean isBottom()Returns whether or not the constant is BOTTOM.- Returns:
- whether or not the constant is BOTTOM
 
- 
isConstantReturns whether or not the constant is CONSTANT.- Returns:
- whether or not the constant is CONSTANT
 
- 
getValueReturns the value.- Returns:
- the value
 
- 
copy
- 
leastUpperBoundDescription copied from interface:AbstractValueCompute the least upper bound of two values.Important: This method must fulfill the following contract: - Does not change this.
- Does not change other.
- Returns a fresh object which is not aliased yet.
- Returns an object of the same (dynamic) type as this, even if the signature is more permissive.
- Is commutative.
 - Specified by:
- leastUpperBoundin interface- AbstractValue<Constant>
 
- Does not change 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-