Class SuggestedFix
java.lang.Object
com.google.javascript.refactoring.SuggestedFix
Object representing the fixes to apply to the source code to create the
refactoring CL. To create a class, use the
SuggestedFix.Builder class and helper
functions.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class forSuggestedFixthat contains helper functions to manipulate JS nodes.static final recordInformation about the node that was matched for the suggested fix. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<SuggestedFix> Get all possible fixes for this problem, including this fix.@Nullable StringReturns information about the original JS Compiler Node that caused this SuggestedFix to be constructed.com.google.common.collect.ImmutableList<SuggestedFix> Get all alternative fixes, excluding this fix.com.google.common.collect.SetMultimap<String, CodeReplacement> Returns a multimap from filename to all the replacements that should be applied for this given fix.toString()
-
Method Details
-
getMatchedNodeInfo
Returns information about the original JS Compiler Node that caused this SuggestedFix to be constructed. -
getReplacements
Returns a multimap from filename to all the replacements that should be applied for this given fix. -
getDescription
-
getAlternatives
Get all possible fixes for this problem, including this fix. -
getNonDefaultAlternatives
Get all alternative fixes, excluding this fix. -
toString
-