class GuardThrowsPair
extends java.lang.Object
Corresponds to a ThrowsCondition.
| Modifier and Type | Field and Description |
|---|---|
(package private) ExecutableBooleanExpression |
guard
The expression that should be true before the operation is called.
|
(package private) ThrowsClause |
throwsClause
The
ThrowsClause representing an exception that is expected to be thrown by the
operation if the guard is true. |
| Constructor and Description |
|---|
GuardThrowsPair(ExecutableBooleanExpression guard,
ThrowsClause throwsClause)
Creates a
GuardThrowsPair object for the guard expression and throws-clause. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
final ExecutableBooleanExpression guard
final ThrowsClause throwsClause
ThrowsClause representing an exception that is expected to be thrown by the
operation if the guard is true.GuardThrowsPair(ExecutableBooleanExpression guard, ThrowsClause throwsClause)
GuardThrowsPair object for the guard expression and throws-clause.guard - the ExecutableBooleanExpression to be evaluated before the operation is
calledthrowsClause - the ThrowsClause to be evaluated after the operation is called