public class InvalidValueCheck extends java.lang.Object implements Check
ExecutableBooleanExpression
of the TypedOperation
in
a Statement
.Modifier and Type | Field and Description |
---|---|
(package private) ExecutableSequence |
eseq
The sequence that creates the value to be checked.
|
(package private) int |
index
The index in the sequence of the statement that creates the value.
|
Constructor and Description |
---|
InvalidValueCheck(ExecutableSequence eseq,
int index)
Create an InvalidValueCheck.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toCodeStringPostStatement()
Returns a string of Java source code to be emitted after a statement containing this check.
|
java.lang.String |
toCodeStringPreStatement()
Returns a string of Java source code to be emitted before a statement containing this check.
|
ExecutableSequence eseq
int index
public InvalidValueCheck(ExecutableSequence eseq, int index)
eseq
- the sequence that creates the value to be checkedindex
- the index in the sequence of the statement that creates the value to be checkedpublic java.lang.String toCodeStringPreStatement()
Check
toCodeStringPreStatement
in interface Check
public java.lang.String toCodeStringPostStatement()
Check
toCodeStringPostStatement
in interface Check