Uses of Class
org.sonar.plugins.python.api.quickfix.PythonTextEdit
-
Packages that use PythonTextEdit Package Description org.sonar.plugins.python.api.quickfix org.sonar.python.quickfix -
-
Uses of PythonTextEdit in org.sonar.plugins.python.api.quickfix
Methods in org.sonar.plugins.python.api.quickfix that return types with arguments of type PythonTextEdit Modifier and Type Method Description List<PythonTextEdit>PythonQuickFix. getTextEdits()Methods in org.sonar.plugins.python.api.quickfix with parameters of type PythonTextEdit Modifier and Type Method Description PythonQuickFix.BuilderPythonQuickFix.Builder. addTextEdit(PythonTextEdit... textEdits)static PythonQuickFixPythonQuickFix. newQuickFix(String description, PythonTextEdit... textEdits)Method parameters in org.sonar.plugins.python.api.quickfix with type arguments of type PythonTextEdit Modifier and Type Method Description PythonQuickFix.BuilderPythonQuickFix.Builder. addTextEdit(List<PythonTextEdit> textEdits) -
Uses of PythonTextEdit in org.sonar.python.quickfix
Methods in org.sonar.python.quickfix that return PythonTextEdit Modifier and Type Method Description static PythonTextEditTextEditUtils. insertAfter(Tree tree, String textToInsert)static PythonTextEditTextEditUtils. insertAtPosition(int line, int column, String textToInsert)static PythonTextEditTextEditUtils. insertBefore(Tree tree, String textToInsert)static PythonTextEditTextEditUtils. insertLineAfter(Tree tree, Tree indentReference, String textToInsert)Insert a line with the same offset as the given tree, after the given tree.static PythonTextEditTextEditUtils. insertLineBefore(Tree tree, String textToInsert)Insert a line with the same offset as the given tree, before the given tree.static PythonTextEditTextEditUtils. remove(Tree toRemove)static PythonTextEditTextEditUtils. removeRange(int startLine, int startColumn, int endLine, int endColumn)static PythonTextEditTextEditUtils. removeStatement(Statement statement)static PythonTextEditTextEditUtils. removeUntil(Tree start, Tree until)Remove range including the start token until the beginning of the end tree's first token.static PythonTextEditTextEditUtils. replace(Tree toReplace, String replacementText)static PythonTextEditTextEditUtils. replaceRange(Tree start, Tree end, String replacementText)Methods in org.sonar.python.quickfix that return types with arguments of type PythonTextEdit Modifier and Type Method Description static List<PythonTextEdit>TextEditUtils. renameAllUsages(HasSymbol node, String newName)Returns a list of all replacements for the symbol to new name.static List<PythonTextEdit>TextEditUtils. shiftLeft(StatementList statementList)Shift body statements to be on same level as the parent statement Filter out text edits which apply on the same line which could show up with multiple statements on the same linestatic List<PythonTextEdit>TextEditUtils. shiftLeft(Tree tree, int offset)Shift single statement of a statement list by the given offset.
-