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

gumtree.spoon.diff.operations.UpdateOperation Maven / Gradle / Ivy

Go to download

Computes the AST difference between two Spoon abstract syntax trees using the Gumtree algorithm.

There is a newer version: 1.92
Show newest version
package gumtree.spoon.diff.operations;

import com.github.gumtreediff.actions.model.Action;
import com.github.gumtreediff.actions.model.Update;
import gumtree.spoon.builder.SpoonGumTreeBuilder;
import spoon.reflect.declaration.CtElement;

public class UpdateOperation extends Operation {
	private final CtElement destElement;

	public UpdateOperation(Update action) {
		super(action);
		destElement = (CtElement) action.getNode().getMetadata(SpoonGumTreeBuilder.SPOON_OBJECT_DEST);
	}

	@Override
	public CtElement getDstNode() {
		return destElement;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy