gr.uom.java.xmi.decomposition.replacement.CompositeReplacement 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.decomposition.replacement;
import java.util.Set;
import gr.uom.java.xmi.decomposition.AbstractCodeFragment;
public class CompositeReplacement extends Replacement {
private Set additionallyMatchedStatements1;
private Set additionallyMatchedStatements2;
public CompositeReplacement(String before, String after,
Set additionallyMatchedStatements1, Set additionallyMatchedStatements2) {
super(before, after, ReplacementType.COMPOSITE);
this.additionallyMatchedStatements1 = additionallyMatchedStatements1;
this.additionallyMatchedStatements2 = additionallyMatchedStatements2;
}
public Set getAdditionallyMatchedStatements1() {
return additionallyMatchedStatements1;
}
public Set getAdditionallyMatchedStatements2() {
return additionallyMatchedStatements2;
}
public int getTotalAdditionallyMatchedStatements() {
return additionallyMatchedStatements1.size() + additionallyMatchedStatements2.size();
}
}