Interface Fix
- All Known Implementing Classes:
SuggestedFix
public interface Fix
Represents a source code transformation, usually used to fix a bug detected by error-prone.
- Author:
- eaftan@google.com (Eddie Aftandilian)
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<String> com.google.common.collect.ImmutableSet
<String> com.google.common.collect.ImmutableSet
<Replacement> getReplacements
(com.sun.tools.javac.tree.EndPosTable endPositions) A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.boolean
isEmpty()
toString
(com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit)
-
Method Details
-
toString
-
getShortDescription
String getShortDescription()A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.Empty string generates the default description.
-
getCoalescePolicy
Replacements.CoalescePolicy getCoalescePolicy() -
getReplacements
com.google.common.collect.ImmutableSet<Replacement> getReplacements(com.sun.tools.javac.tree.EndPosTable endPositions) -
getImportsToAdd
com.google.common.collect.ImmutableSet<String> getImportsToAdd() -
getImportsToRemove
com.google.common.collect.ImmutableSet<String> getImportsToRemove() -
isEmpty
boolean isEmpty()
-