Uses of Class
com.google.javascript.refactoring.SuggestedFix
-
Packages that use SuggestedFix Package Description com.google.javascript.refactoring com.google.javascript.refactoring.examples -
-
Uses of SuggestedFix in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring that return SuggestedFix Modifier and Type Method Description SuggestedFix
SuggestedFix.Builder. build()
SuggestedFix
ErrorToFixMapper. getFixForJsError(JSError error)
Creates a SuggestedFix for the given error.Methods in com.google.javascript.refactoring that return types with arguments of type SuggestedFix Modifier and Type Method Description java.util.List<SuggestedFix>
RefactoringDriver. drive(Scanner scanner)
Run a refactoring and return any suggested fixes as a result.java.util.List<SuggestedFix>
RefactoringDriver. drive(Scanner scanner, java.util.regex.Pattern includeFilePattern)
Run a refactoring and return any suggested fixes as a result.java.util.Collection<SuggestedFix>
FixingErrorManager. getAllFixes()
Returns fixes for errors first, then fixes for warnings.com.google.common.collect.ImmutableList<SuggestedFix>
SuggestedFix. getAlternatives()
Get all possible fixes for this problem, including this fix.com.google.common.collect.ImmutableList<SuggestedFix>
ErrorToFixMapper. getFixesForJsError(JSError error)
java.util.List<SuggestedFix>
FixingErrorManager. getFixesForJsError(JSError error)
com.google.common.collect.ImmutableList<SuggestedFix>
SuggestedFix. getNonDefaultAlternatives()
Get all alternative fixes, excluding this fix.java.util.Collection<SuggestedFix>
FixingErrorManager. getSureFixes()
Returns fixes for errors and warnings that only have one 'sure' guaranteed fix.java.util.List<SuggestedFix>
Scanner. processAllMatches(java.util.Collection<Match> matches)
Processes every given match at one time.com.google.common.collect.ImmutableList<SuggestedFix>
RefasterJsScanner. processMatch(Match match)
java.util.List<SuggestedFix>
Scanner. processMatch(Match match)
Processes oneMatch
at a time.Methods in com.google.javascript.refactoring with parameters of type SuggestedFix Modifier and Type Method Description SuggestedFix.Builder
SuggestedFix.Builder. addAlternative(SuggestedFix alternative)
Method parameters in com.google.javascript.refactoring with type arguments of type SuggestedFix Modifier and Type Method Description static com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>>
ApplySuggestedFixes. applyAllSuggestedFixChoicesToCode(java.lang.Iterable<SuggestedFix> fixChoices, java.util.Map<java.lang.String,java.lang.String> fileNameToCodeMap)
Applies all possible options from eachSuggestedFixAlternative
to the provided code and returns the new code.static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>
ApplySuggestedFixes. applySuggestedFixesToCode(java.lang.Iterable<SuggestedFix> fixes, java.util.Map<java.lang.String,java.lang.String> filenameToCodeMap)
Applies the provided set of suggested fixes to the provided code and returns the new code, ignoring alternative fixes.static void
ApplySuggestedFixes. applySuggestedFixesToFiles(java.lang.Iterable<SuggestedFix> fixes)
Applies the provided set of suggested fixes to the files listed in the suggested fixes. -
Uses of SuggestedFix in com.google.javascript.refactoring.examples
Methods in com.google.javascript.refactoring.examples that return types with arguments of type SuggestedFix Modifier and Type Method Description com.google.common.collect.ImmutableList<SuggestedFix>
GoogBindToArrow. processMatch(Match match)
-