gr.uom.java.xmi.decomposition.replacement.MethodInvocationWithClassInstanceCreationReplacement 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 gr.uom.java.xmi.decomposition.ObjectCreation;
import gr.uom.java.xmi.decomposition.OperationInvocation;
public class MethodInvocationWithClassInstanceCreationReplacement extends Replacement {
private OperationInvocation invokedOperationBefore;
private ObjectCreation objectCreationAfter;
public MethodInvocationWithClassInstanceCreationReplacement(String before, String after, ReplacementType type,
OperationInvocation invokedOperationBefore, ObjectCreation objectCreationAfter) {
super(before, after, type);
this.invokedOperationBefore = invokedOperationBefore;
this.objectCreationAfter = objectCreationAfter;
}
public OperationInvocation getInvokedOperationBefore() {
return invokedOperationBefore;
}
public ObjectCreation getObjectCreationAfter() {
return objectCreationAfter;
}
}