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