The @FieldInvariant annotation does not currently accommodate type qualifiers with
attributes, such as @MinLen(1). In this case, the type system should implement its own
field invariant annotation and override AnnotatedTypeFactory.getFieldInvariantDeclarationAnnotations() and AnnotatedTypeFactory.getFieldInvariants(). See org.checkerframework.common.value.qual.MinLenFieldInvariant for an example.
| Modifier and Type | Method and Description |
|---|---|
| public String[] | field()
The field that has a more precise type, in the class on which the |
| public Class |
| field | back to summary |
|---|---|
| public String[] field() The field that has a more precise type, in the class on which the | |
| qualifier | back to summary |
|---|---|
| public Class The qualifier on the field. Must be a subtype of the qualifier on the declaration of the field. | |