|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodContract
MethodContract
| Method Summary | |
|---|---|
java.lang.String |
check(java.lang.StringBuilder[] l)
Returns whether the supplied values hold to the precondition and postcondition using the Assertions' check method. |
java.util.List<Argument> |
getArgs()
Returns the list of arguments required by this method. |
java.lang.String |
getName()
Returns the siganture of the method being tested. |
Assertion |
getPostcondition()
Returns the postconditional Assertion. |
Assertion |
getPrecondition()
Returns the preconditional Assertion. |
Argument.Type |
getReturnType()
Returns the programming type of what is returned from this method. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.util.List<MathType> l)
|
| Method Detail |
|---|
java.lang.String getName()
Assertion getPrecondition()
Assertion getPostcondition()
java.util.List<Argument> getArgs()
Argument.Type getReturnType()
java.lang.String check(java.lang.StringBuilder[] l)
l - User input obtained from the GUI. Must be parsed
by the contract to obtain the correct MathType objects
toString(List l)
if the values supplied for the arguments of the
method satisfy both the precondition and postcondition.
null is returned if the input does
not satisfy the precondition and postconditionjava.lang.String toString()
toString in class java.lang.Objectjava.lang.String toString(java.util.List<MathType> l)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||