gumtree.spoon.diff.operations.Operation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gumtree-spoon-ast-diff Show documentation
Show all versions of gumtree-spoon-ast-diff Show documentation
Computes the AST difference between two Spoon abstract syntax trees using the Gumtree algorithm.
package gumtree.spoon.diff.operations;
import com.github.gumtreediff.actions.model.Action;
import gumtree.spoon.builder.SpoonGumTreeBuilder;
import spoon.reflect.declaration.CtElement;
public abstract class Operation {
private final CtElement node;
private final T action;
public Operation(T action) {
this.action = action;
this.node = (CtElement) action.getNode().getMetadata(SpoonGumTreeBuilder.SPOON_OBJECT);
}
public CtElement getNode() {
return node;
}
public T getAction() {
return action;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy