Package spoon.refactoring
package spoon.refactoring
-
InterfaceDescriptionDefines 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: -
ClassDescriptionAbstractRenameRefactoring<T extends CtNamedElement>abstract implementation of rename element refactoringRemoves target
CtParameter
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.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 throwRefactoringException
if the model would be not consistent after rename to new name.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. -
ExceptionDescriptionThrown when required refactoring would cause model inconsistency