gr.uom.java.xmi.diff.CandidateExtractClassRefactoring Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-miner Show documentation
Show all versions of refactoring-miner Show documentation
RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.
package gr.uom.java.xmi.diff;
public class CandidateExtractClassRefactoring {
private UMLClassBaseDiff classDiff;
private ExtractClassRefactoring refactoring;
public CandidateExtractClassRefactoring(UMLClassBaseDiff classDiff, ExtractClassRefactoring refactoring) {
this.classDiff = classDiff;
this.refactoring = refactoring;
}
public boolean innerClassExtract() {
return refactoring.getExtractedClass().getName().startsWith(refactoring.getOriginalClass().getName() + ".");
}
public UMLClassBaseDiff getClassDiff() {
return classDiff;
}
public ExtractClassRefactoring getRefactoring() {
return refactoring;
}
}