| Interface | Description |
|---|---|
| ContractEnvironment |
An object that exposes methods to alter the contracting
environment.
|
| ContractEnvironmentConfigurator |
An object that can be called by Contracts for Java to configure the
contract environment.
|
| Error | Description |
|---|---|
| ContractAssertionError |
Base class for contract assertion errors.
|
| InvariantError |
An exception thrown when a class invariant is violated.
|
| PostconditionError |
An exception thrown when a postcondition is violated.
|
| PreconditionError |
An exception thrown when a precondition is violated.
|
| SpecificationError |
An error in contract annotation usage.
|
| Annotation Type | Description |
|---|---|
| AllowUnusedImport |
References a class so it is considered used by import statement
cleaning tools.
|
| Ensures |
Specifies postconditions that apply to the annotated method.
|
| Invariant |
Specifies class invariants that apply to the annotated type.
|
| Requires |
Specifies preconditions that apply to the annotated method.
|
| ThrowEnsures |
Specifies exceptional postconditions that apply to the annotated
method.
|