/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.gmt.modisco.java.emffrag.impl; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.gmt.modisco.java.ArrayCreation; import org.eclipse.gmt.modisco.java.ArrayInitializer; import org.eclipse.gmt.modisco.java.Expression; import org.eclipse.gmt.modisco.java.TypeAccess; import org.eclipse.gmt.modisco.java.emffrag.metadata.JavaPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Array Creation</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.ArrayCreationImpl#getDimensions <em>Dimensions</em>}</li> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.ArrayCreationImpl#getInitializer <em>Initializer</em>}</li> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.ArrayCreationImpl#getType <em>Type</em>}</li> * </ul> * * @generated */ public class ArrayCreationImpl extends ExpressionImpl implements ArrayCreation { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ArrayCreationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return JavaPackage.eINSTANCE.getArrayCreation(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") public EList<Expression> getDimensions() { return (EList<Expression>)eGet(JavaPackage.eINSTANCE.getArrayCreation_Dimensions(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ArrayInitializer getInitializer() { return (ArrayInitializer)eGet(JavaPackage.eINSTANCE.getArrayCreation_Initializer(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setInitializer(ArrayInitializer newInitializer) { eSet(JavaPackage.eINSTANCE.getArrayCreation_Initializer(), newInitializer); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeAccess getType() { return (TypeAccess)eGet(JavaPackage.eINSTANCE.getArrayCreation_Type(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(TypeAccess newType) { eSet(JavaPackage.eINSTANCE.getArrayCreation_Type(), newType); } } //ArrayCreationImpl