Package randoop.condition
Class GuardPropertyPair
- java.lang.Object
-
- randoop.condition.GuardPropertyPair
-
public class GuardPropertyPair extends Object
Represents a pair of an executable guard and an executable property.Corresponds to a
Postcondition
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ExecutableBooleanExpression
guard
The expression that must hold before the operation is called.(package private) ExecutableBooleanExpression
property
The expression that must be true after the operation is called when theguard
is true.
-
Constructor Summary
Constructors Constructor Description GuardPropertyPair(ExecutableBooleanExpression guard, ExecutableBooleanExpression property)
Creates aGuardPropertyPair
object for the guard and property expressions.
-
-
-
Field Detail
-
guard
final ExecutableBooleanExpression guard
The expression that must hold before the operation is called.
-
property
final ExecutableBooleanExpression property
The expression that must be true after the operation is called when theguard
is true.
-
-
Constructor Detail
-
GuardPropertyPair
GuardPropertyPair(ExecutableBooleanExpression guard, ExecutableBooleanExpression property)
Creates aGuardPropertyPair
object for the guard and property expressions.- Parameters:
guard
- theExecutableBooleanExpression
to be evaluated before the operation is calledproperty
- theExecutableBooleanExpression
to be evaluated after the operation is called
-
-