blob: 4a79ce04099200485f2371a774f1bf1b64a60085 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2010 E.D.Willink and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* E.D.Willink - Initial API and implementation
*
* </copyright>
*
* $Id: Nameable.java,v 1.2 2011/01/24 20:49:36 ewillink Exp $
*/
package org.eclipse.ocl.examples.pivot.executor;
import org.eclipse.ocl.examples.domain.elements.DomainInheritance;
import org.eclipse.ocl.examples.pivot.VoidType;
public class PivotReflectiveVoidType extends PivotReflectiveType
{
public PivotReflectiveVoidType(PivotReflectivePackage executorPackage, VoidType type) {
super(executorPackage, type);
}
@Override
public DomainInheritance getCommonInheritance(DomainInheritance thatInheritance) {
return thatInheritance.isUndefined() ? this : thatInheritance;
}
@Override
public boolean isUndefined() {
return true;
}
}