Interface IRefactoringService


  • public interface IRefactoringService
    The refactoring service.
    • Method Detail

      • initiateRename

        IRefactoring initiateRename​(RefactoringTask task,
                                    IRefactoringOperation mainOperation,
                                    String newName,
                                    RefactoringSettings settings)
        Initiates rename refactoring for the specified task.
        Parameters:
        task - the refactoring task, cannot be null.
        mainOperation - the main operation of the rename refactoring, cannot be null.
        newName - the new name for the object presented in the task, cannot be null.
        settings - the refactoring settings, cannot be null.
        Returns:
        the IRefactoring instance or null if the refactoring is unable to perform.
      • initiateDelete

        IRefactoring initiateDelete​(Collection<RefactoringTask> tasks,
                                    RefactoringSettings settings)
        Initiates delete refactoring for the specified tasks.
        Parameters:
        tasks - the refactoring tasks, cannot be null or empty.
        settings - the refactoring settings, cannot be null.
        Returns:
        the IRefactoring instance or null if the refactoring is unable to perform.