@SupportedOptions(value={"quals","qualDirs"}) public final class SubtypingChecker extends BaseTypeChecker
The annotation(s) are specified on the command line, using an annotation processor argument:
-Aquals
: specifies the annotations in the qualifier hierarchy (as a comma-separated
list of fully-qualified annotation names with no spaces in between). Only the annotation
for one qualified subtype hierarchy can be passed.
currentRoot, DETAILS_SEPARATOR, elementsWithSuppressedWarnings, errsOnLastExit, messager, messagesProperties, MSGS_FILE, parentChecker, SUPPRESS_ALL_KEY, trees, UNNEEDED_SUPPRESSION_KEY, upstreamCheckerNames, visitor
processingEnv
Constructor and Description |
---|
SubtypingChecker() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getSuppressWarningsKeys() |
static Collection<String> |
getSuppressWarningsKeys(SourceVisitor<?,?> visitor,
Collection<String> superSupportedTypeQualifiers)
Compute getSuppressWarningsKeys, based on the names of all the qualifiers.
|
createSourceVisitor, getAnnotationProvider, getChecker, getContext, getImmediateSubcheckerClasses, getOptions, getRelatedClassName, getSubchecker, getSupportedLintOptions, getSupportedOptions, getTreePathCacher, getTypeFactory, getTypeFactoryOfSubchecker, getVisitor, initChecker, invokeConstructorFor, printOrStoreMessage, processArg, setRoot, shouldAddShutdownHook, shouldResolveReflection, shutdownHook, typeProcess, typeProcessingOver, warnUnneededSuppressions
addOptions, createSupportedLintOptions, expandCFOptions, fullMessageOf, getBooleanOption, getBooleanOption, getElementUtils, getLintOption, getLintOption, getMessagesProperties, getOption, getOption, getOptionConfiguration, getParentChecker, getProcessingEnvironment, getProperties, getStandardSuppressWarningsKeys, getSupportedAnnotationTypes, getSupportedSourceVersion, getTreeUtils, getTypeUtils, getUpstreamCheckerNames, hasOption, init, message, printStats, report, report, reportError, reportWarning, setLintOption, setParentChecker, setProcessingEnvironment, setSupportedLintOptions, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shouldSkipUses, shouldSuppressWarnings, shouldSuppressWarnings, shouldSuppressWarnings, typeProcessingStart, useConservativeDefault, warnUnneededSuppressions
getCompilerLog, process
getCompletions, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementUtils, getOptionConfiguration, getProcessingEnvironment, getTreeUtils, getTypeUtils
public static Collection<String> getSuppressWarningsKeys(SourceVisitor<?,?> visitor, Collection<String> superSupportedTypeQualifiers)
Provided for the convenience of checkers that do not subclass Subtyping Checker (because it is final). Clients should call it like:
SubtypingChecker.getSuppressWarningsKeys(this.visitor, super.getSuppressWarningsKeys());
visitor
- the visitorsuperSupportedTypeQualifiers
- the result of super.getSuppressWarningsKeys(), as
executed by checkerpublic Collection<String> getSuppressWarningsKeys()
getSuppressWarningsKeys
in class SourceChecker
SuppressWarningsKeys