@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 annotations
for one qualified subtype hierarchy can be passed.
currentRoot, DETAILS_SEPARATOR, elementsWithSuppressedWarnings, errsOnLastExit, messager, messagesProperties, MSGS_FILE, OPTION_SEPARATOR, parentChecker, SUPPRESS_ALL_MESSAGE_KEY, SUPPRESS_ALL_PREFIX, trees, UNNEEDED_SUPPRESSION_KEY, upstreamCheckerNames, useAllcheckersPrefix, visitor
processingEnv
Constructor and Description |
---|
SubtypingChecker() |
Modifier and Type | Method and Description |
---|---|
SortedSet<String> |
getSuppressWarningsPrefixes()
Returns a modifiable set of lower-case strings that are prefixes for SuppressWarnings
strings.
|
static SortedSet<String> |
getSuppressWarningsPrefixes(SourceVisitor<?,?> visitor,
SortedSet<String> superSupportedTypeQualifiers)
Compute SuppressWarnings prefixes, based on the names of all the qualifiers.
|
createSourceVisitor, createSourceVisitorPublic, getAnnotationProvider, getChecker, getContext, getImmediateSubcheckerClasses, getOptions, getRelatedClassName, getSubchecker, getSubcheckers, 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, getStandardSuppressWarningsPrefixes, getSupportedAnnotationTypes, getSupportedSourceVersion, getTreeUtils, getTypeUtils, getUpstreamCheckerNames, hasOption, init, message, printOrStoreMessage, printStats, report, reportError, reportWarning, setLintOption, setParentChecker, setProcessingEnvironment, setSupportedLintOptions, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shouldSkipUses, 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 SortedSet<String> getSuppressWarningsPrefixes(SourceVisitor<?,?> visitor, SortedSet<String> superSupportedTypeQualifiers)
Provided for the convenience of checkers that do not subclass Subtyping Checker (because it is final). Clients should call it like:
SubtypingChecker.getSuppressWarningsPrefixes(this.visitor, super.getSuppressWarningsPrefixes());
visitor
- the visitorsuperSupportedTypeQualifiers
- the result of super.getSuppressWarningsPrefixes(), as
executed by checkerpublic SortedSet<String> getSuppressWarningsPrefixes()
SourceChecker
The collection must not be empty and must not contain only SourceChecker.SUPPRESS_ALL_PREFIX
.
getSuppressWarningsPrefixes
in class SourceChecker