|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface AssertionCreator
Analyzes the conditions of if and switch statements and produces corresponding assertion statement for the intermediate program.
| Method Summary | |
|---|---|
AssertionBranches |
createAssertions(IfStmt branch,
AssertionContext context)
Creates assertions that must hold when the if statement's condition is true and false, respectively. |
AssertionBranch |
createSwitchAssertions(ValueBox variable,
int value,
Unit switchStart,
AssertionContext context)
Creates assertions that must hold when a switch statement branches to the specified case block. |
AssertionBranch |
createSwitchDefaultAssertions(ValueBox variable,
List<Integer> skippedValues,
Unit switchStart,
AssertionContext context)
Creates assertions that must hold when a switch statement branches to the default block. |
| Method Detail |
|---|
AssertionBranches createAssertions(IfStmt branch,
AssertionContext context)
addStatement method.
context - the ACME Assertion Creation Kit™ toolbox of useful stuff!
AssertionBranch createSwitchAssertions(ValueBox variable,
int value,
Unit switchStart,
AssertionContext context)
variable - the expression x as used in switch(x) {...}.value - the y as used in case y: ...switchStart - the start of the switch statementcontext - see AssertionContext
AssertionBranch createSwitchDefaultAssertions(ValueBox variable,
List<Integer> skippedValues,
Unit switchStart,
AssertionContext context)
variable - the expression x as used in switch(x) {...}.skippedValues - a list with all the case values in the switchswitchStart - the start of the switch statementcontext - see AssertionContext
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||