/******************************************************************************* * Copyright (c) 2010 Martin Schnabel <mb0@mb0.org>. * 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 ******************************************************************************/ package org.axdt.avm.model.impl; import org.axdt.avm.AvmEPackage; import org.axdt.avm.model.AvmType; import org.axdt.avm.model.AvmVoid; import org.axdt.avm.naming.AvmQualifiedName; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Avm Void</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class AvmVoidImpl extends MinimalEObjectImpl.Container implements AvmVoid { /** * A set of bit flags representing the values of boolean attributes and whether unsettable features have been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected int flags = 0; protected final AvmQualifiedName qname; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ protected AvmVoidImpl() { super(); qname = AvmQualifiedName.create("void"); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return AvmEPackage.Literals.AVM_VOID; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public boolean isDynamic() { return false; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public boolean isFinal() { return true; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public boolean isInterface() { return false; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public boolean isClass() { return false; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public AvmType calculateCommonType(AvmType other) { if (other == null) return null; return this; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public String getQualifier() { return null; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public String getName() { return qname.getFirstSegment(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public String getCanonicalName() { return qname.getFirstSegment(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public AvmQualifiedName getQualifiedName() { return qname; } } //AvmVoidImpl