/******************************************************************************* * 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.as3.model.impl; import org.axdt.as3.As3EPackage; import org.axdt.as3.model.As3ParenListExpression; import org.axdt.as3.model.IExpression; import org.axdt.avm.util.AvmTypeAccess; import org.eclipse.emf.ecore.EClass; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>As3 Paren List Expression</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class As3ParenListExpressionImpl extends As3ExpressionListImpl implements As3ParenListExpression { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected As3ParenListExpressionImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return As3EPackage.Literals.AS3_PAREN_LIST_EXPRESSION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public AvmTypeAccess resolveType() { if (getExpressions().isEmpty()) return AvmTypeAccess.NULL; IExpression last = getExpressions().get(getExpressions().size() - 1); return last.resolveType(); } } //As3ParenListExpressionImpl