Commit 3404d71e authored by Marco Konersmann's avatar Marco Konersmann

removes unused code

parent 03ddd7fb
package org.codeling.lang.jee7.transformation;
import java.util.List;
import org.codeling.mechanisms.transformations.classes.ContainmentOperationTargetTransformation;
import org.codeling.mechanisms.transformations.references.ContainmentOperationTransformation;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jdt.core.IJavaElement;
import de.mkonersmann.advert.java.embed.ProfilesUtils;
import de.mkonersmann.advert.java.embed.transformation.AbstractModelCodeTransformation;
import de.mkonersmann.il.profiles.Profiles;
public class DelegatedOperationTransformation extends ContainmentOperationTargetTransformation<EObject> {
public DelegatedOperationTransformation(
ContainmentOperationTransformation<? extends EObject, EObject> parentTransformation) {
super(parentTransformation,
ProfilesUtils.getEReference(
ProfilesUtils.getStereotype("OperationInterface", Profiles.INTERFACES_TYPE_OPERATIONS.load()),
"operations").getEReferenceType());
}
@Override
public void doCreateCrossReferencesTransformations(
List<AbstractModelCodeTransformation<? extends EObject, ? extends IJavaElement>> result) {
}
@Override
protected void doCreateChildTransformationsToCode(
List<AbstractModelCodeTransformation<? extends EObject, ? extends IJavaElement>> result) {
// Removed. See below
// result.add(new ParametersTransformation(this));
// result.add(new ReturnTypeTransformation(this));
}
@Override
protected void doCreateChildTransformationsToModel(
List<AbstractModelCodeTransformation<? extends EObject, ? extends IJavaElement>> result) {
// Removed because the resulting model is too big for HenshinTGG
// result.add(new ParametersTransformation(this));
// result.add(new ReturnTypeTransformation(this));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment