Package spoon.refactoring
-
Interface Summary Interface Description CtRefactoring Defines basic contract of all refactoring implementations.
Contract: to process a required refactoring.
Usage:CtRenameRefactoring<T extends CtNamedElement> The kind of refactoring, which renames a `target` element to the `newName`
Usage: -
Class Summary Class Description AbstractRenameRefactoring<T extends CtNamedElement> abstract implementation of rename element refactoringCtDeprecatedRefactoring CtParameterRemoveRefactoring Removes targetCtParameter
from the parent targetCtExecutable
and from all overriding/overridden methods of related type hierarchies and from all lambda expressions (if any) implementing the modified interface.CtRenameGenericVariableRefactoring Spoon model that can refactor any type of variable (method parameters, local variables, field variables.CtRenameLocalVariableRefactoring Spoon model refactoring function which renames `target` local variable to `newName`
This refactoring will throwRefactoringException
if the model would be not consistent after rename to new name.MethodCallState This class is for the call state of a method.MethodInvocationSearch Class for creating a mapping from CtExecutable to all known calls from fields and methods.Refactoring Contains all methods to refactor code elements in the AST. -
Exception Summary Exception Description RefactoringException Thrown when required refactoring would cause model inconsistency