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

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

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