Class StubFilesTest.ParentStubChecker
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.checkerframework.javacutil.AbstractTypeProcessor
org.checkerframework.framework.source.SourceChecker
org.checkerframework.framework.source.StubFilesTest.ParentStubChecker
- All Implemented Interfaces:
Processor,OptionConfiguration
- Enclosing class:
StubFilesTest
@StubFiles("parent.astub")
public static class StubFilesTest.ParentStubChecker
extends SourceChecker
Parent compound checker.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.framework.source.SourceChecker
SourceChecker.CheckerMessage -
Field Summary
Fields inherited from class org.checkerframework.framework.source.SourceChecker
currentRoot, DETAILS_SEPARATOR, elements, messager, MSGS_FILE, OPTION_SEPARATOR, parentChecker, SUPPRESS_ALL_MESSAGE_KEY, SUPPRESS_ALL_PREFIX, trees, types, UNNEEDED_SUPPRESSION_KEY, upstreamCheckerNames, useAllcheckersPrefix, visitorFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
ConstructorsConstructorDescriptionParentStubChecker(List<SourceChecker> subcheckers) Creates a ParentStubChecker with given subcheckers. -
Method Summary
Modifier and TypeMethodDescriptionprotected SourceVisitor<?, ?> Provides theSourceVisitorthat the checker should use to scan input source trees.Returns the list of all subcheckers (if any).Methods inherited from class org.checkerframework.framework.source.SourceChecker
addOptionsForMode, createMessagesProperties, createRelevantJavaTypes, createSupportedLintOptions, createSupportedModes, expandCFOptions, expandCFOptions, fullMessageOf, getAnnotationProvider, getAssumeAssertions, getBooleanOption, getBooleanOption, getClassHierarchy, getElementUtils, getErrorCount, getExtraStubFiles, getImmediateSubcheckerClasses, getLintOption, getLintOption, getOption, getOption, getOptionConfiguration, getOptions, getOptionsNoSubcheckers, getParentChecker, getPathToCompilationUnit, getProcessingEnvironment, getProperties, getRelatedClassName, getRelevantJavaTypes, getStandardSuppressWarningsPrefixes, getStringsOption, getStringsOption, getStubFiles, getSubchecker, getSubCheckerIndex, getSupportedAnnotationTypes, getSupportedLintOptions, getSupportedModes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsPrefixes, getSuppressWarningsPrefixesOfSubcheckers, getTreePathCacher, getTreeUtils, getTypeUtils, getUpstreamCheckerNames, getVisitor, getWarningMessagePrefix, handleProcessingError, hasOption, hasOptionNoSubcheckers, init, initChecker, instantiateSubcheckers, isElementAnnotatedForThisCheckerOrUpstreamChecker, message, message, messageKeyMatches, packageProcess, printStats, printStoredMessages, processErrorMessageArg, report, reportError, reportWarning, setDiagnosticSink, setHostOptions, setLintOption, setParentChecker, setRoot, shouldAddShutdownHook, shouldResolveReflection, shouldSkipDefs, shouldSkipDefs, shouldSkipDefs, shouldSkipDefs, shouldSkipFiles, shouldSkipUses, shouldSkipUses, shouldSuppressWarnings, shouldSuppressWarnings, shouldSuppressWarnings, shutdownHook, suppressWarningsString, typeProcess, typeProcessingOver, typeProcessingStart, useConservativeDefault, usePermissiveDefault, warnUnneededSuppressions, warnUnneededSuppressionsMethods inherited from class org.checkerframework.javacutil.AbstractTypeProcessor
getCompilerLog, isExternallyDriven, packageProcessExternally, process, setExternallyDriven, typeProcessExternally, typeProcessingOverExternallyMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.checkerframework.framework.util.OptionConfiguration
getStringsOption, getStringsOption
-
Constructor Details
-
ParentStubChecker
Creates a ParentStubChecker with given subcheckers.- Parameters:
subcheckers- the subcheckers
-
-
Method Details
-
getSubcheckers
Description copied from class:SourceCheckerReturns the list of all subcheckers (if any). This list is only non-empty for the one checker that runs all other subcheckers. These are recursively instantiated via instantiateSubcheckers() the first time this method is called if fieldsubcheckersis null. Assumes all checkers run on the same thread.- Overrides:
getSubcheckersin classSourceChecker- Returns:
- the list of all subcheckers (if any)
-
createSourceVisitor
Description copied from class:SourceCheckerProvides theSourceVisitorthat the checker should use to scan input source trees.- Specified by:
createSourceVisitorin classSourceChecker- Returns:
- a
SourceVisitorto use to scan source trees
-