public abstract class MethodContract
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<ContractValue> |
getConditions() |
ContractReturnValue |
getReturnValue() |
boolean |
isTrivial() |
static MethodContract |
singleConditionContract(ContractValue left,
RelationType relationType,
ContractValue right,
ContractReturnValue returnValue) |
static java.util.List<? extends MethodContract> |
toNonIntersectingContracts(java.util.List<? extends MethodContract> contracts) |
java.lang.String |
toString() |
static MethodContract |
trivialContract(ContractReturnValue value) |
public ContractReturnValue getReturnValue()
public boolean isTrivial()
public abstract java.util.List<ContractValue> getConditions()
public java.lang.String toString()
toString
in class java.lang.Object
public static MethodContract trivialContract(ContractReturnValue value)
public static MethodContract singleConditionContract(ContractValue left, RelationType relationType, ContractValue right, ContractReturnValue returnValue)
public static java.util.List<? extends MethodContract> toNonIntersectingContracts(java.util.List<? extends MethodContract> contracts)