@SupportedAnnotationTypes(value={"org.antlr.v4.runtime.misc.NotNull","org.antlr.v4.runtime.misc.Nullable"}) @SupportedSourceVersion(value=RELEASE_6) public class NullUsageProcessor extends AbstractProcessor
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 |
---|---|
static String |
NotNullClassName |
static String |
NullableClassName |
processingEnv
Constructor and Description |
---|
NullUsageProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
public static final String NotNullClassName
public static final String NullableClassName
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
Copyright © 1992–2014 ANTLR. All rights reserved.