public final class FixFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Fix |
addModifiersFix(CompilationInfo compilationInfo,
TreePath treePath,
Set<Modifier> toAdd,
String text)
Creates a fix, which when invoked adds a set of modifiers to the existing ones
|
static Fix |
changeModifiersFix(CompilationInfo compilationInfo,
TreePath treePath,
Set<Modifier> toAdd,
Set<Modifier> toRemove,
String text)
Creates a fix, which when invoked changes the existing modifiers
|
static Fix |
removeModifiersFix(CompilationInfo compilationInfo,
TreePath treePath,
Set<Modifier> toRemove,
String text)
Creates a fix, which when invoked removes a set of modifiers from the existing ones
|
public static final Fix addModifiersFix(CompilationInfo compilationInfo, TreePath treePath, Set<Modifier> toAdd, String text)
compilationInfo
- CompilationInfo to work ontreePath
- TreePath to a ModifiersTree.toAdd
- set of Modifiers to addtext
- text displayed as a fix descriptionpublic static final Fix removeModifiersFix(CompilationInfo compilationInfo, TreePath treePath, Set<Modifier> toRemove, String text)
compilationInfo
- CompilationInfo to work ontreePath
- TreePath to a ModifiersTree.toRemove
- set of Modifiers to removetext
- text displayed as a fix descriptionpublic static final Fix changeModifiersFix(CompilationInfo compilationInfo, TreePath treePath, Set<Modifier> toAdd, Set<Modifier> toRemove, String text)
compilationInfo
- CompilationInfo to work ontreePath
- TreePath to a ModifiersTree.toAdd
- set of Modifiers to addtoRemove
- set of Modifiers to removetext
- text displayed as a fix description