public interface Iteration
| Modifier and Type | Method and Description |
|---|---|
static void |
iterateBlock(RefactoringRule rule,
IterationLogger logger,
CtBlock block,
boolean isDeep,
int depth)
Iterates over a particular method
|
static void |
iterateMethod(RefactoringRule rule,
IterationLogger logger,
CtMethod method,
boolean isDeep)
Iterates over a particular method
|
void |
onDidIterate(DetectionPhaseContext context)
Lifecycle method that happens in an individual iteration of the statements on the detection phase
and after detecting cases of interest in the particular iteration.
|
void |
onDidRefactorCase(RefactoringPhaseContext context)
Lifecycle method that happens in an individual iteration of the cases of interest found on the detection phase
and after refactoring is applied for that particular case of interest.
|
void |
onDidTransformCase(TransformationPhaseContext context)
Lifecycle method that happens in an individual iteration of the cases of interest found on the detection phase
and after the transformation is applied for that particular case of interest.
|
void |
onSetup(DetectionPhaseContext context)
Lifecycle method that happens before the iteration starts.
|
void |
onWillIterate(DetectionPhaseContext context)
Lifecycle method that happens in an individual iteration of the statements on the detection phase
and before detecting cases of interest in the particular iteration.
|
void |
onWillRefactor(RefactoringPhaseContext context)
Lifecycle method that happens when the detection phase ends and the refactoring phase starts.
|
void |
onWillRefactorCase(RefactoringPhaseContext context)
Lifecycle method that happens in an individual iteration of the cases of interest found on the detection phase
and before refactoring is applied for that particular case of interest.
|
void |
onWillTransform(TransformationPhaseContext context)
Lifecycle method that happens when the detection phase ends and the transformation phase starts.
|
void |
onWillTransformCase(TransformationPhaseContext context)
Lifecycle method that happens in an individual iteration of the cases of interest found on the detection phase
and before the transformation is applied for that particular case of interest.
|
void onSetup(DetectionPhaseContext context)
context - The detection phase contextvoid onWillIterate(DetectionPhaseContext context)
context - The detection phase contextvoid onDidIterate(DetectionPhaseContext context)
context - The detection phase contextvoid onWillTransform(TransformationPhaseContext context)
context - The transformation phase contextvoid onWillTransformCase(TransformationPhaseContext context)
context - The transformation phase contextvoid onDidTransformCase(TransformationPhaseContext context)
context - The transformation phase contextvoid onWillRefactor(RefactoringPhaseContext context)
context - The refactoring phase contextvoid onWillRefactorCase(RefactoringPhaseContext context)
context - The refactoring phase contextvoid onDidRefactorCase(RefactoringPhaseContext context)
context - The refactoring phase contextstatic void iterateMethod(RefactoringRule rule, IterationLogger logger, CtMethod method, boolean isDeep)
rule - The refactoring rule that is appliedlogger - The logger for entry logs and performance datamethod - The node of the method declarationisDeep - A flag that describes whether the search will go into inner block's or not.static void iterateBlock(RefactoringRule rule, IterationLogger logger, CtBlock block, boolean isDeep, int depth)
rule - The refactoring rule that is appliedlogger - The logger for entry logs and performance datablock - The node of the method declarationisDeep - A flag that describes whether the search will go into inner block's or not.depth - An integer representing the current depth of the search