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

hu.blackbelt.epsilon.runtime.execution.EpsilonUtils Maven / Gradle / Ivy

package hu.blackbelt.epsilon.runtime.execution;

import org.eclipse.epsilon.eol.models.IModel;
import org.eclipse.epsilon.eol.models.IReflectiveModel;
import org.eclipse.epsilon.eol.models.ModelReference;
import org.eclipse.epsilon.eol.models.ReflectiveModelReference;

public class EpsilonUtils {
    public static ModelReference createModelReference(IModel model) {
        if (model instanceof IReflectiveModel) {
            return new ReflectiveModelReference((IReflectiveModel)model);

        } else {
            return new ModelReference(model);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy