public class ViewHolderRefactoringRule extends <any> implements RefactoringRule<CtClass>
| Constructor and Description |
|---|
ViewHolderRefactoringRule(IterationLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
detectCase(DetectionPhaseContext context)
Detects cases of interest
|
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 |
process(CtClass element) |
void |
processCase(RefactoringPhaseContext context)
Processes cases of interest
|
void |
transformCase(TransformationPhaseContext context)
Processes cases of interest
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClosestBlockParent, getClosestClassParent, getClosestMethodParent, getClosestTypeParent, getCtElementsOfInterest, getCtElementsOfInterestWithFilter, hasCtElementOfInterestiterateBlock, iterateMethodcombineCaseDetectorcombineCaseProcessor, createPassThroughTransformationcombineCaseProcessorpublic ViewHolderRefactoringRule(IterationLogger logger)
public void detectCase(DetectionPhaseContext context)
CaseDetectordetectCase in interface CaseDetectorcontext - The iteration context of the current iteration in progresspublic void transformCase(TransformationPhaseContext context)
CaseTransformertransformCase in interface CaseTransformercontext - The iteration context of the current iteration in progresspublic void processCase(RefactoringPhaseContext context)
CaseProcessorprocessCase in interface CaseProcessorcontext - The iteration context of the current iteration in progresspublic void onSetup(DetectionPhaseContext context)
Iterationpublic void onWillIterate(DetectionPhaseContext context)
IterationonWillIterate in interface Iterationcontext - The detection phase contextpublic void onDidIterate(DetectionPhaseContext context)
IterationonDidIterate in interface Iterationcontext - The detection phase contextpublic void onWillTransform(TransformationPhaseContext context)
IterationonWillTransform in interface Iterationcontext - The transformation phase contextpublic void onWillTransformCase(TransformationPhaseContext context)
IterationonWillTransformCase in interface Iterationcontext - The transformation phase contextpublic void onDidTransformCase(TransformationPhaseContext context)
IterationonDidTransformCase in interface Iterationcontext - The transformation phase contextpublic void onWillRefactor(RefactoringPhaseContext context)
IterationonWillRefactor in interface Iterationcontext - The refactoring phase contextpublic void onWillRefactorCase(RefactoringPhaseContext context)
IterationonWillRefactorCase in interface Iterationcontext - The refactoring phase contextpublic void onDidRefactorCase(RefactoringPhaseContext context)
IterationonDidRefactorCase in interface Iterationcontext - The refactoring phase contextpublic void process(CtClass element)