All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gr.uom.java.xmi.decomposition.replacement.CompositeReplacement Maven / Gradle / Ivy

Go to download

RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.

There is a newer version: 3.0.9
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy