blob: bb06aaaeb6195710f39bf3c2e03dd73ea714568f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2018 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.pivot.qvtimperative.evaluation;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.internal.evaluation.BasicEvaluationEnvironment;
import org.eclipse.qvtd.pivot.qvtbase.Transformation;
public class QVTiRootEvaluationEnvironment extends BasicEvaluationEnvironment implements QVTiEvaluationEnvironment
{
public QVTiRootEvaluationEnvironment(@NonNull QVTiExecutor executor, @NonNull Transformation executableObject) {
super(executor, executableObject);
}
@Override
public @NonNull QVTiExecutor getExecutor() {
return (QVTiExecutor) super.getExecutor();
}
@Override
public @NonNull QVTiRootEvaluationEnvironment getRootEvaluationEnvironment() {
return this;
}
@Override
public @NonNull Transformation getTransformation() {
Object executableObject2 = executableObject;
assert executableObject2 != null;
return (Transformation) executableObject2;
}
}