NotNull and
Nullable annotations.
The validation process checks the following items.
NotNull and Nullable.void is annotated with NotNull or Nullable.Nullable.NotNull, but the method overrides or implements a method where the parameter is annotated Nullable.Nullable, but the method overrides or implements a method that is annotated with NotNull.NotNull.NotNull, but the method overrides or implements a method where the parameter is not annotated.Nullable, but the method overrides or implements a method that is not annotated.In the future, the validation process may be updated to check the following additional items.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private TypeElement | |
| public static final String | |
| private TypeElement |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addElementsToNamedMethodMap(Set<? extends Element> elements, Map<String, Map<ExecutableElement, List<Element>>> namedMethodMap)
|
| private boolean | |
| private boolean | |
| private void | checkOverriddenMethod(ExecutableElement overrider, ExecutableElement overridden, Set<Element> errorElements, Set<Element> warnedElements)
|
| private void | |
| private void | checkPrimitiveTypeAnnotations(Set<? extends Element> elements, Diagnostic.
|
| private void | |
| private List | |
| private AnnotationMirror | |
| private AnnotationMirror | |
| private AnnotationMirror | |
| private boolean | |
| private boolean | |
| public boolean | process(Set<? extends TypeElement>
the annotation interfaces requested to be processed annotations, RoundEnvironment environment for information about the current and prior round roundEnv)Implements abstract javax. Implements javax. |
| NotNullClassName | back to summary |
|---|---|
| public static final String NotNullClassName | |
| notNullType | back to summary |
|---|---|
| private TypeElement notNullType | |
| NullableClassName | back to summary |
|---|---|
| public static final String NullableClassName | |
| nullableType | back to summary |
|---|---|
| private TypeElement nullableType | |
| NullUsageProcessor | back to summary |
|---|---|
| public NullUsageProcessor() | |
| addElementsToNamedMethodMap | back to summary |
|---|---|
| private void addElementsToNamedMethodMap(Set<? extends Element> elements, Map<String, Map<ExecutableElement, List<Element>>> namedMethodMap) | |
| checkClassNameConstant | back to summary |
|---|---|
| private boolean checkClassNameConstant(String className, Class<?> clazz) | |
| checkClassNameConstants | back to summary |
|---|---|
| private boolean checkClassNameConstants() | |
| checkOverriddenMethod | back to summary |
|---|---|
| private void checkOverriddenMethod(ExecutableElement overrider, ExecutableElement overridden, Set<Element> errorElements, Set<Element> warnedElements) | |
| checkOverriddenMethods | back to summary |
|---|---|
| private void checkOverriddenMethods(ExecutableElement method) | |
| checkPrimitiveTypeAnnotations | back to summary |
|---|---|
| private void checkPrimitiveTypeAnnotations(Set<? extends Element> elements, Diagnostic. | |
| checkVoidMethodAnnotations | back to summary |
|---|---|
| private void checkVoidMethodAnnotations(Set<? extends Element> elements, TypeElement annotationType) | |
| getAllSupertypes | back to summary |
|---|---|
| private List | |
| getAnnotationMirror | back to summary |
|---|---|
| private AnnotationMirror getAnnotationMirror(Element element, TypeElement annotationType) | |
| getNotNullAnnotationMirror | back to summary |
|---|---|
| private AnnotationMirror getNotNullAnnotationMirror(Element element) | |
| getNullableAnnotationMirror | back to summary |
|---|---|
| private AnnotationMirror getNullableAnnotationMirror(Element element) | |
| isNotNull | back to summary |
|---|---|
| private boolean isNotNull(Element element) | |
| isNullable | back to summary |
|---|---|
| private boolean isNullable(Element element) | |
| process | back to summary |
|---|---|
| public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Implements abstract javax. Implements javax. Doc from javax. Processes a set of annotation interfaces on root elements originating
from the prior round and returns whether or not these
annotation interfaces are claimed by this processor. If The input set will be empty if the processor supports
| |