Interface Summary Interface Description BugCheckerRefactoringTestHelper.FixChooserFor checks that provide multiple possible fixes, chooses the one that will be applied for the test. CodeTransformerInterface for a transformation over Java source. DescriptionListenerStrategies for reporting results. DescriptionListener.FactoryFactory for creating DescriptionListeners while compiling each file. StatisticsCollectorA collector of counters keyed by strings.
Class Summary Class Description BaseErrorProneJavaCompilerAn Error Prone compiler that implements
BugCheckerInfoAn accessor for information about a single bug checker, including the metadata in the check's
@BugPatternannotation and the class that implements the check.
BugCheckerRefactoringTestHelperCompare a file transformed as suggested by
BugCheckerto an expected source.
BugPattern.StandardTagsA collection of standardized tags that can be applied to BugPatterns. BugPatternIndexWriter BugPatternInstanceA serialization-friendly POJO of the information in a
@BugPatternannotation for wellformedness.
CompilationTestHelperHelps test Error Prone bug checkers and compilations. CompositeCodeTransformerCombines multiple
CodeTransformers into one.
DiagnosticTestHelperUtility class for tests which need to assert on the diagnostics produced during compilation. DocGenProcessorAnnotation processor which visits all classes that have a
BugPatternannotation, and writes a tab-delimited text file dumping the data found.
DocGenToolUtility main which consumes the same tab-delimited text file and generates GitHub pages for the BugPatterns. DocGenTool.TargetEnumConverter ErrorProneAnalyzerA
TaskListenerthat runs Error Prone over attributed compilation units.
ErrorProneFlagsRepresents an immutable map of Error Prone flags to their set values. ErrorProneFlags.BuilderBuilder for Error Prone command-line flags object. ErrorProneJavaCompilerAn Error Prone compiler that implements
Pluginthat runs Error Prone.
ErrorProneOptionsProcesses command-line options specific to error-prone. ErrorPronePluginsLoads custom Error Prone checks from the annotation processor classpath. ErrorProneTimingsA collection of timing data for the runtime of individual checks. ErrorProneVersionThe Error Prone version. FileManagersManages
JavacFileManagers for use in Error Prone's test.
FileObjectsFactories for in-memory
JavaFileObjects, for testing.
ImportOrderParserParse import order strings. JavacErrorDescriptionListenerMaking our errors appear to the user and break their build. JavacInvocationInstanceA token uniquely identifying a single invocation of javac. MaskedClassLoaderA classloader that allows plugins to access the Error Prone classes from the compiler classpath. SubContextA view on top of a
Contextallowing additional modifications to be added without affecting the underlying
SuppressionInfoImmutable container of "suppression signals" - annotations or other information gathered from source - that can be used to determine if a specific
Suppressibleobject should be considered suppressed.
Enum Summary Enum Description BugCheckerRefactoringTestHelper.FixChoosersPredefined FixChoosers for selecting a fix by its position in the list BugCheckerRefactoringTestHelper.TestModeTest mode for matching refactored source against expected source. BugPattern.LinkTypeThe type of link to generate in the compiler error message. BugPattern.ProvidesFixTypes of fixes BugCheckers can provide. BugPattern.SeverityLevelThe severity of the diagnostic. ErrorProneOptions.SeveritySeverity levels for an error-prone check that define how the check results should be presented. SuppressionInfo.SuppressedState
Error Summary Error Description ErrorProneErrorWraps an unrecoverable error that occurs during analysis with the source position that triggered the crash.
Annotation Types Summary Annotation Type Description BugPatternDescribes a bug pattern detected by error-prone.