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 true if the constant is BOTTOM.booleanReturns true if the constant is CONSTANT.booleanisTop()Returns true if 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 true if the constant is TOP.- Returns:
- true if the constant is TOP
 
- 
isBottompublic boolean isBottom()Returns true if the constant is BOTTOM.- Returns:
- true if the constant is BOTTOM
 
- 
isConstantReturns true if the constant is CONSTANT.- Returns:
- true if 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>
- Parameters:
- other- the other value
- Returns:
- the least upper bound of the two values
 
- Does not change 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-