|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttcra.exercises.StackPushContract
public class StackPushContract
| Constructor Summary | |
|---|---|
StackPushContract()
|
|
| Method Summary | |
|---|---|
java.lang.String |
check(java.lang.StringBuilder[] input)
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> argVals)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StackPushContract()
| Method Detail |
|---|
public java.lang.String check(java.lang.StringBuilder[] input)
MethodContract
check in interface MethodContractinput - 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 postconditionpublic java.lang.String toString()
toString in interface MethodContracttoString in class java.lang.Objectpublic java.lang.String toString(java.util.List<MathType> argVals)
toString in interface MethodContractpublic Argument.Type getReturnType()
MethodContract
getReturnType in interface MethodContractpublic java.lang.String getName()
MethodContract
getName in interface MethodContractpublic Assertion getPrecondition()
MethodContract
getPrecondition in interface MethodContractpublic Assertion getPostcondition()
MethodContract
getPostcondition in interface MethodContractpublic java.util.List<Argument> getArgs()
MethodContract
getArgs in interface MethodContract
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||