Uses of Class
org.sonar.plugins.python.api.quickfix.PythonTextEdit
Packages that use PythonTextEdit
-
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 PythonTextEditMethods in org.sonar.plugins.python.api.quickfix with parameters of type PythonTextEditModifier and TypeMethodDescriptionPythonQuickFix.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 PythonTextEditModifier and TypeMethodDescriptionPythonQuickFix.Builder.addTextEdit(List<PythonTextEdit> textEdits) -
Uses of PythonTextEdit in org.sonar.python.quickfix
Methods in org.sonar.python.quickfix that return PythonTextEditModifier and TypeMethodDescriptionstatic 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 PythonTextEditstatic 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 PythonTextEditstatic PythonTextEditTextEditUtils.replaceRange(Tree start, Tree end, String replacementText) Methods in org.sonar.python.quickfix that return types with arguments of type PythonTextEditModifier and TypeMethodDescriptionstatic 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>Shift single statement of a statement list by the given offset.