@SupportedLintOptions(value={"noInitForMonotonicNonNull","redundantNullComparison","forbidnonnullarraycomponents"})
public abstract class AbstractNullnessChecker
extends InitializationChecker
| Modifier and Type | Field and Description |
|---|---|
static boolean |
LINT_DEFAULT_NOINITFORMONOTONICNONNULL
Default for
LINT_NOINITFORMONOTONICNONNULL. |
static boolean |
LINT_DEFAULT_REDUNDANTNULLCOMPARISON
Default for
LINT_REDUNDANTNULLCOMPARISON. |
static java.lang.String |
LINT_NOINITFORMONOTONICNONNULL
Should we be strict about initialization of
MonotonicNonNull variables. |
static java.lang.String |
LINT_REDUNDANTNULLCOMPARISON
Warn about redundant comparisons of expressions with
null, if the expressions is
known to be non-null. |
useFbc| Constructor and Description |
|---|
AbstractNullnessChecker(boolean useFbc) |
| Modifier and Type | Method and Description |
|---|---|
protected org.checkerframework.common.basetype.BaseTypeVisitor<?> |
createSourceVisitor() |
protected java.util.LinkedHashSet<java.lang.Class<? extends org.checkerframework.common.basetype.BaseTypeChecker>> |
getImmediateSubcheckerClasses() |
java.util.Collection<java.lang.String> |
getSuppressWarningsKeys() |
getAllFieldsgetAnnotationProvider, getChecker, getContext, getOptions, getSubchecker, getSupportedLintOptions, getSupportedOptions, getTypeFactory, getTypeFactoryOfSubchecker, getVisitor, initChecker, invokeConstructorFor, printMessage, processArg, shouldAddShutdownHook, shouldResolveReflection, shutdownHook, typeProcess, typeProcessingOver, warnUnneededSuppressionsaddOptions, createSupportedLintOptions, errorAbort, errorAbort, expandCFOptions, formatStackTrace, fullMessageOf, getBooleanOption, getBooleanOption, getElementUtils, getLintOption, getLintOption, getMessages, getOption, getOption, getOptionConfiguration, getProcessingEnvironment, getProperties, getStandardSuppressWarningsKeys, getSupportedAnnotationTypes, getSupportedSourceVersion, getTreeUtils, getTypeUtils, getUpstreamCheckerNames, hasOption, init, message, printStats, report, setLintOption, setParentChecker, setProcessingEnvironment, setSupportedLintOptions, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shouldSkipUses, shouldSuppressWarnings, shouldSuppressWarnings, treeToFilePositionString, typeProcessingStart, userErrorAbort, useUncheckedCodeDefault, warnUnneedSuppressionsgetCompletions, isInitializedpublic static final java.lang.String LINT_NOINITFORMONOTONICNONNULL
MonotonicNonNull variables.public static final boolean LINT_DEFAULT_NOINITFORMONOTONICNONNULL
LINT_NOINITFORMONOTONICNONNULL.public static final java.lang.String LINT_REDUNDANTNULLCOMPARISON
null, if the expressions is
known to be non-null.public static final boolean LINT_DEFAULT_REDUNDANTNULLCOMPARISON
LINT_REDUNDANTNULLCOMPARISON.protected java.util.LinkedHashSet<java.lang.Class<? extends org.checkerframework.common.basetype.BaseTypeChecker>> getImmediateSubcheckerClasses()
getImmediateSubcheckerClasses in class org.checkerframework.common.basetype.BaseTypeCheckerpublic java.util.Collection<java.lang.String> getSuppressWarningsKeys()
getSuppressWarningsKeys in class InitializationCheckerprotected org.checkerframework.common.basetype.BaseTypeVisitor<?> createSourceVisitor()
createSourceVisitor in class org.checkerframework.common.basetype.BaseTypeChecker