|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttcra.driver.StackPushContract
public class StackPushContract
| Constructor Summary | |
|---|---|
StackPushContract()
|
|
| Method Summary | |
|---|---|
boolean |
check(java.util.List<MathType> argVals)
Returns whether the supplied values hold to the precondition and postcondition using the Assertion's 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 boolean check(java.util.List<MathType> argVals)
MethodContract
check in interface MethodContractargVals - list of MathType representing the value of the
method's arguments
true if the values supplied for the
arguments of the method satisfy both the precondition
and postcondition
false if they do notpublic 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 | ||||||||