@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, javacErrored, 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, getExtraStubFiles, getImmediateSubcheckerClasses, getOptions, getOptionsNoSubcheckers, getRelatedClassName, getSubchecker, getSubcheckers, getSupportedLintOptions, getSupportedOptions, getSuppressWarningsPrefixesOfSubcheckers, getTreePathCacher, getTypeFactory, getTypeFactoryOfSubchecker, getUltimateParentChecker, getVisitor, hasOptionNoSubcheckers, initChecker, invokeConstructorFor, printOrStoreMessage, processArg, reportJavacError, setRoot, shouldAddShutdownHook, shouldResolveReflection, shutdownHook, typeProcess, typeProcessingOver, warnUnneededSuppressions
addOptions, createSupportedLintOptions, expandCFOptions, fullMessageOf, getBooleanOption, getBooleanOption, getElementUtils, getLintOption, getLintOption, getMessagesProperties, getOption, getOption, getOptionConfiguration, getParentChecker, getPathToCompilationUnit, getProcessingEnvironment, getProperties, getStandardSuppressWarningsPrefixes, getSupportedAnnotationTypes, getSupportedSourceVersion, getTreeUtils, getTypeUtils, getUpstreamCheckerNames, hasOption, init, message, message, printOrStoreMessage, printStats, report, reportError, reportWarning, setLintOption, setParentChecker, setProcessingEnvironment, setSupportedLintOptions, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, shouldSkipUses, shouldSuppressWarnings, shouldSuppressWarnings, shouldSuppressWarnings, typeProcessingStart, useConservativeDefault, warnUnneededSuppressions
getCompilerLog, process
getCompletions, isInitialized
public static SortedSet<String> getSuppressWarningsPrefixes(SourceVisitor<?,?> visitor, SortedSet<String> superSupportedTypeQualifiers)
Provided for the convenience of checkers that do not subclass SubtypingChecker
(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