Package com.crawljax.condition.invariant
Class Invariant
- java.lang.Object
-
- com.crawljax.condition.ConditionType
-
- com.crawljax.condition.invariant.Invariant
-
public class Invariant extends ConditionType
An Invariant is an condition which should always hold when its preconditions are satisfied.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditiongetInvariantCondition()StringtoString()-
Methods inherited from class com.crawljax.condition.ConditionType
equals, getCondition, getDescription, getPreConditions, hashCode
-
-
-
-
Constructor Detail
-
Invariant
public Invariant(String description, Condition invariantCondition)
- Parameters:
description- Description of the invariant.invariantCondition- Condition to check.
-
Invariant
public Invariant(String description, Condition invariantCondition, Condition... preConditions)
- Parameters:
description- Description of the invariant.invariantCondition- Condition to check.preConditions- Only check if the preconditions are true.
-
-
Method Detail
-
getInvariantCondition
public Condition getInvariantCondition()
- Returns:
- The condition
-
toString
public String toString()
- Overrides:
toStringin classConditionType
-
-