Package daikon
Class DynamicConstants.Constant
- Object
-
- Constant
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DynamicConstants
@Interned public static class DynamicConstants.Constant extends Object implements Serializable
Class used to indicate, for each variable, whether it is constant (see boolean field "constant"). If it is, then the class also stores its constant value and its sample count.Note that two objects of this class are equal if they refer to the same variable. This allows these to be stored in sets.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkRep()
Check representation invariant.boolean
equals(@GuardSatisfied @Nullable Object obj)
int
hashCode()
boolean
is_prev_constant()
Returns whether the specified variable is currently a constant OR was a constant at the beginning of constants processing.String
toString()
-
-
-
Method Detail
-
checkRep
public void checkRep()
Check representation invariant.
-
is_prev_constant
@Pure public boolean is_prev_constant()
Returns whether the specified variable is currently a constant OR was a constant at the beginning of constants processing.
-
equals
@EnsuresNonNullIf(result=true, expression="#1") @Pure public boolean equals(@GuardSatisfied DynamicConstants.Constant this, @GuardSatisfied @Nullable Object obj)
-
hashCode
@Pure public int hashCode(@GuardSatisfied DynamicConstants.Constant this)
-
-