public abstract static class ContractsUtils.Contract
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContractsUtils.Contract.Kind |
| Modifier and Type | Field and Description |
|---|---|
javax.lang.model.element.AnnotationMirror |
annotation
The annotation that must be on the type of expression as part of this contract.
|
java.lang.String |
expression
The expression for which the condition must hold, such as
"foo" in
@RequiresNonNull("foo"). |
ContractsUtils.Contract.Kind |
kind |
| Constructor and Description |
|---|
Contract(java.lang.String expression,
javax.lang.model.element.AnnotationMirror annotation,
ContractsUtils.Contract.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public final java.lang.String expression
"foo" in
@RequiresNonNull("foo").public final javax.lang.model.element.AnnotationMirror annotation
public final ContractsUtils.Contract.Kind kind
public Contract(java.lang.String expression,
javax.lang.model.element.AnnotationMirror annotation,
ContractsUtils.Contract.Kind kind)