CaseDetector, CaseProcessor, CaseTransformer, Iteration, RefactoringRule<spoon.reflect.declaration.CtClass>, spoon.processing.FactoryAccessor, spoon.processing.Processor<spoon.reflect.declaration.CtClass>public class ViewHolderRefactoringRule extends spoon.processing.AbstractProcessor<spoon.reflect.declaration.CtClass> implements RefactoringRule<spoon.reflect.declaration.CtClass>
| Constructor | Description |
|---|---|
ViewHolderRefactoringRule(IterationLogger logger) |
| Modifier and Type | Method | 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(spoon.reflect.declaration.CtClass element) |
|
void |
processCase(RefactoringPhaseContext context) |
Processes cases of interest
|
void |
transformCase(TransformationPhaseContext context) |
Processes cases of interest
|
addProcessedElementType, clearProcessedElementType, getEnvironment, getFactory, getProcessedElementTypes, getTraversalStrategy, init, initProperties, interrupt, isToBeProcessed, loadProperties, process, processingDone, removeProcessedElementType, setFactorycombineCaseDetectorcombineCaseProcessorcombineCaseProcessor, createPassThroughTransformationiterateBlock, iterateMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironment, getProcessedElementTypes, getTraversalStrategy, init, initProperties, interrupt, isToBeProcessed, process, processingDonegetClosestBlockParent, getClosestClassParent, getClosestMethodParent, getClosestTypeParent, getCtElementsOfInterest, getCtElementsOfInterestWithFilter, hasCtElementOfInterestpublic 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(spoon.reflect.declaration.CtClass element)
process in interface spoon.processing.Processor<spoon.reflect.declaration.CtClass>