Package randoop.test
Class InvalidValueCheck
java.lang.Object
randoop.test.InvalidValueCheck
- All Implemented Interfaces:
Check
Represents the occurrence of an invalid value for a
ExecutableBooleanExpression
of the TypedOperation
in
a Statement
.-
Field Summary
Modifier and TypeFieldDescription(package private) ExecutableSequence
The sequence that creates the value to be checked.(package private) int
The index in the sequence of the statement that creates the value. -
Constructor Summary
ConstructorDescriptionInvalidValueCheck
(ExecutableSequence eseq, int index) Create an InvalidValueCheck. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string of Java source code to be emitted after a statement containing this check.Returns a string of Java source code to be emitted before a statement containing this check.
-
Field Details
-
eseq
ExecutableSequence eseqThe sequence that creates the value to be checked. -
index
int indexThe index in the sequence of the statement that creates the value.
-
-
Constructor Details
-
InvalidValueCheck
Create an InvalidValueCheck.- Parameters:
eseq
- the sequence that creates the value to be checkedindex
- the index in the sequence of the statement that creates the value to be checked
-
-
Method Details
-
toCodeStringPreStatement
Description copied from interface:Check
Returns a string of Java source code to be emitted before a statement containing this check.- Specified by:
toCodeStringPreStatement
in interfaceCheck
- Returns:
- the string to be included before the statement
-
toCodeStringPostStatement
Description copied from interface:Check
Returns a string of Java source code to be emitted after a statement containing this check.- Specified by:
toCodeStringPostStatement
in interfaceCheck
- Returns:
- the string to be included following the statement
-