public class ContractsFromMethod extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected GenericAnnotatedTypeFactory<?,?,?,?> | 
factory
The factory that this ContractsFromMethod is associated with. 
 | 
| Constructor and Description | 
|---|
ContractsFromMethod(GenericAnnotatedTypeFactory<?,?,?,?> factory)
Creates a ContractsFromMethod for the given factory. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Contract.ConditionalPostcondition> | 
getConditionalPostconditions(ExecutableElement methodElement)
Returns the conditional postcondition contracts on method  
methodElement. | 
Set<Contract> | 
getContracts(ExecutableElement executableElement)
Returns all the contracts on method or constructor  
executableElement. | 
Set<Contract.Postcondition> | 
getPostconditions(ExecutableElement executableElement)
Returns the postcondition contracts on  
executableElement. | 
Set<Contract.Precondition> | 
getPreconditions(ExecutableElement executableElement)
Returns the precondition contracts on method or constructor  
executableElement. | 
protected GenericAnnotatedTypeFactory<?,?,?,?> factory
public ContractsFromMethod(GenericAnnotatedTypeFactory<?,?,?,?> factory)
factory - the type factory associated with the newly-created ContractsFromMethodpublic Set<Contract> getContracts(ExecutableElement executableElement)
executableElement.executableElement - the method or constructor whose contracts to retrieveexecutableElementpublic Set<Contract.Precondition> getPreconditions(ExecutableElement executableElement)
executableElement.executableElement - the method whose contracts to returnexecutableElementpublic Set<Contract.Postcondition> getPostconditions(ExecutableElement executableElement)
executableElement.executableElement - the method whose contracts to returnexecutableElementpublic Set<Contract.ConditionalPostcondition> getConditionalPostconditions(ExecutableElement methodElement)
methodElement.methodElement - the method whose contracts to returnmethodElement