Package com.google.errorprone.fixes
Support code for providing automated corrections for defects we find.
-
Interface Summary Interface Description Fix Represents a source code transformation, usually used to fix a bug detected by error-prone. -
Class Summary Class Description AdjustedPosition Describes a tree position with adjustments to the start and end indices.AppliedFix Represents the corrected source which we think was intended, by applying a Fix.AppliedFix.Applier BranchedSuggestedFixes Helper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them.BranchedSuggestedFixes.Builder Builder class for BranchedSuggestedFixesFixedPosition AJCDiagnostic.DiagnosticPosition
with a fixed position.IndexedPosition Describes a position that only has a start and end index.Replacement A replaced section of a source file.Replacements A collection ofReplacement
s to be made to a source file.SuggestedFix SuggestedFix.Builder BuildsSuggestedFix
s.SuggestedFixes Factories for constructingFix
es.SuggestedFixes.FixCompiler A class to hold the files from the compilation context, with a diff applied to the currently-processed one; the files can then be recompiled.SuggestedFixes.FixCompiler.Result The result of the compilation. -
Enum Summary Enum Description Replacements.CoalescePolicy A policy for handling overlapping insertions.SuggestedFixes.AdditionPosition InstructsSuggestedFixes.addMembers(ClassTree, VisitorState, AdditionPosition, String, String...)
whether to add the new member(s) at the beginning of the class, or at the end.