public class NullnessSubchecker extends BaseTypeChecker
NonNull,
Nullable,
RawSourceChecker.CheckerError| Modifier and Type | Field and Description |
|---|---|
static boolean |
ADVANCEDCHECKS_DEFAULT |
protected @Nullable AnnotationMirror |
LAZYNONNULL |
protected @Nullable AnnotationMirror |
NONNULL |
protected @Nullable AnnotationMirror |
NULLABLE |
static boolean |
NULLTEST_DEFAULT |
protected @Nullable AnnotationMirror |
POLYNULL |
protected @Nullable AnnotationMirror |
PRIMITIVE |
protected RawnessSubchecker |
rawnesschecker |
static boolean |
UNINIT_DEFAULT |
currentPath, currentRoot, messager, messages, treesprocessingEnv| Constructor and Description |
|---|
NullnessSubchecker() |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedTypeFactory |
createFactory(@Nullable CompilationUnitTree root)
Constructs an instance of the appropriate type factory for the
implemented type system.
|
QualifierHierarchy |
createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
Factory method to easily change what QualifierHierarchy is
created.
|
protected MultiGraphQualifierHierarchy.MultiGraphFactory |
createQualifierHierarchyFactory()
Factory method to easily change what Factory is used to
create a QualifierHierarchy.
|
protected TypeHierarchy |
createTypeHierarchy()
Creates the type subtyping checker using the current type qualifier
hierarchy.
|
void |
initChecker()
Initialize the checker.
|
createQualifierHierarchy, createSourceVisitor, createSupportedTypeQualifiers, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, invokeConstructorForerrorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStartinit, process, typeProcessingOvergetCompletions, isInitialized, toStringpublic static final boolean UNINIT_DEFAULT
public static final boolean NULLTEST_DEFAULT
public static final boolean ADVANCEDCHECKS_DEFAULT
protected @Nullable AnnotationMirror NONNULL
protected @Nullable AnnotationMirror NULLABLE
protected @Nullable AnnotationMirror LAZYNONNULL
protected @Nullable AnnotationMirror PRIMITIVE
protected @Nullable AnnotationMirror POLYNULL
protected RawnessSubchecker rawnesschecker
public void initChecker()
SourceCheckerinitChecker in class BaseTypeCheckerAbstractProcessor.init(ProcessingEnvironment)public AnnotatedTypeFactory createFactory(@Nullable CompilationUnitTree root)
BaseTypeCheckerBasicAnnotatedTypeFactory. It reflectively invokes the
constructor that accepts this checker and compilation unit tree
(in that order) as arguments.
Subclasses have to override this method to create the appropriate
visitor if they do not follow the checker naming convention.createFactory in class BaseTypeCheckerroot - the currently visited compilation unitprotected TypeHierarchy createTypeHierarchy()
BaseTypeCheckercreateTypeHierarchy in class BaseTypeCheckerprotected MultiGraphQualifierHierarchy.MultiGraphFactory createQualifierHierarchyFactory()
BaseTypeCheckercreateQualifierHierarchyFactory in class BaseTypeCheckerpublic QualifierHierarchy createQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
BaseTypeCheckercreateQualifierHierarchy in class BaseTypeChecker