Package randoop.condition.specification
Class SpecificationClause
java.lang.Object
randoop.condition.specification.SpecificationClause
- Direct Known Subclasses:
Postcondition
,Precondition
,ThrowsCondition
Abstract class for representations of conditions that can be attached to methods and
constructors.
Every specification clause has at least a guard (which this class provides). Some clauses have more parts, so subclasses of this class can add fields.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The description of thisSpecificationClause
.private final Guard
TheGuard
for this specification. -
Constructor Summary
ModifierConstructorDescriptionprotected
Gson serialization requires a default constructor.protected
SpecificationClause
(String description, Guard guard) Creates aSpecificationClause
with the given guard. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the description of thisSpecificationClause
.getGuard()
Return theGuard
of thisSpecificationClause
.int
hashCode()
-
Field Details
-
description
The description of thisSpecificationClause
. -
guard
TheGuard
for this specification.
-
-
Constructor Details
-
SpecificationClause
protected SpecificationClause()Gson serialization requires a default constructor. -
SpecificationClause
Creates aSpecificationClause
with the given guard.- Parameters:
description
- the description of the created specificationguard
- theGuard
for the created specification
-
-
Method Details
-
getDescription
Returns the description of thisSpecificationClause
.- Returns:
- the description of this specification
-
getGuard
Return theGuard
of thisSpecificationClause
.- Returns:
- the guard of this specification
-
equals
-
hashCode
public int hashCode()
-