Class NoContractsFromMethod
java.lang.Object
org.checkerframework.framework.util.NoContractsFromMethod
- All Implemented Interfaces:
ContractsFromMethod
Dummy implementation of
ContractsFromMethod
that only returns empty sets.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConditionalPostconditions
(ExecutableElement methodElement) Returns an empty set.getContracts
(ExecutableElement executableElement) Returns an empty set.getPostconditions
(ExecutableElement executableElement) Returns an empty setgetPreconditions
(ExecutableElement executableElement) Returns an empty set
-
Constructor Details
-
NoContractsFromMethod
public NoContractsFromMethod()Creates a NoContractsFromMethod object.
-
-
Method Details
-
getContracts
Returns an empty set.- Specified by:
getContracts
in interfaceContractsFromMethod
- Parameters:
executableElement
- the method or constructor whose contracts to retrieve- Returns:
- an empty set
-
getPreconditions
Returns an empty set- Specified by:
getPreconditions
in interfaceContractsFromMethod
- Parameters:
executableElement
- the method whose contracts to return- Returns:
- an empty set
-
getPostconditions
Returns an empty set- Specified by:
getPostconditions
in interfaceContractsFromMethod
- Parameters:
executableElement
- the method whose contracts to return- Returns:
- an empty set
-
getConditionalPostconditions
public Set<Contract.ConditionalPostcondition> getConditionalPostconditions(ExecutableElement methodElement) Returns an empty set.- Specified by:
getConditionalPostconditions
in interfaceContractsFromMethod
- Parameters:
methodElement
- the method whose contracts to return- Returns:
- an empty set
-