public class ContractsUtils extends Object
PreconditionAnnotation,
RequiresQualifier,
PostconditionAnnotation,
EnsuresQualifier,
EnsuresQualifierIf| Modifier and Type | Field and Description |
|---|---|
protected GenericAnnotatedTypeFactory<?,?,?,?> |
factory |
protected static ContractsUtils |
instance |
| Modifier and Type | Method and Description |
|---|---|
Set<Pair<String,Pair<Boolean,String>>> |
getConditionalPostconditions(ExecutableElement methodElement)
Returns a set of triples
(expr, (result, annotation)) of
conditional postconditions on the method methodElement. |
static ContractsUtils |
getInstance(GenericAnnotatedTypeFactory<?,?,?,?> factory)
Returns an instance of the
ContractsUtils class. |
Set<Pair<String,String>> |
getPostconditions(ExecutableElement methodElement)
Returns a set of pairs
(expr, annotation) of postconditions on
the method methodElement. |
Set<Pair<String,String>> |
getPreconditions(Element element)
Returns a set of pairs
(expr, annotation) of preconditions on the
element element. |
protected static ContractsUtils instance
protected GenericAnnotatedTypeFactory<?,?,?,?> factory
public static ContractsUtils getInstance(GenericAnnotatedTypeFactory<?,?,?,?> factory)
ContractsUtils class.public Set<Pair<String,String>> getPreconditions(Element element)
(expr, annotation) of preconditions on the
element element.public Set<Pair<String,String>> getPostconditions(ExecutableElement methodElement)
(expr, annotation) of postconditions on
the method methodElement.