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

org.refactoringminer.astDiff.matchers.TreeMatcher 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 org.refactoringminer.astDiff.matchers;

import com.github.gumtreediff.tree.Tree;
import org.refactoringminer.astDiff.models.ExtendedMultiMappingStore;

/**
 * @author  Pourya Alikhani Fard [email protected]
 */
public interface TreeMatcher {
	void match(Tree src, Tree dst, ExtendedMultiMappingStore mappingStore);
	default ExtendedMultiMappingStore matchAndMake(Tree srcTree, Tree dstTree) {
		ExtendedMultiMappingStore mappingStore = new ExtendedMultiMappingStore(srcTree, dstTree);
		match(srcTree, dstTree, mappingStore);
		return mappingStore;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy