/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jem.internal.instantiation;
/*
*/
import org.eclipse.emf.common.util.EList;
/**
*
* A representation of the model object 'Array Creation'.
*
*
*
* Array Creation expression, e.g. new int[3] or new java.langString[][] {{"a"}, {"b"}}
*
*
*
* The following features are supported:
*
* - {@link org.eclipse.jem.internal.instantiation.PTArrayCreation#getType Type}
* - {@link org.eclipse.jem.internal.instantiation.PTArrayCreation#getDimensions Dimensions}
* - {@link org.eclipse.jem.internal.instantiation.PTArrayCreation#getInitializer Initializer}
*
*
*
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTArrayCreation()
* @model
* @generated
*/
public interface PTArrayCreation extends PTExpression{
/**
* Returns the value of the 'Type' attribute.
*
*
*
* The fully-qualified type, e.g. int[][] or java.lang.String[], including the number of dimension brackets.
*
* @return the value of the 'Type' attribute.
* @see #setType(String)
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTArrayCreation_Type()
* @model
* @generated
*/
String getType();
/**
* Sets the value of the '{@link org.eclipse.jem.internal.instantiation.PTArrayCreation#getType Type}' attribute.
*
*
* @param value the new value of the 'Type' attribute.
* @see #getType()
* @generated
*/
void setType(String value);
/**
* Returns the value of the 'Dimensions' containment reference list.
* The list contents are of type {@link org.eclipse.jem.internal.instantiation.PTExpression}.
*
*
*
* The list of expressions for the dimensions. You can have [3][4][] but [][33] is invalid. So for each dimension that has an expression, there will be an entry in the list, in the correct order. When you reach the empty dimensions, the list will end too.
*
* @return the value of the 'Dimensions' containment reference list.
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTArrayCreation_Dimensions()
* @model type="org.eclipse.jem.internal.instantiation.PTExpression" containment="true"
* @generated
*/
EList getDimensions();
/**
* Returns the value of the 'Initializer' containment reference.
*
*
*
* This is the initializer, if any, for this array. E.g. new int[] {2,3}. It is the {2,3}.
*
* @return the value of the 'Initializer' containment reference.
* @see #setInitializer(PTArrayInitializer)
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTArrayCreation_Initializer()
* @model containment="true"
* @generated
*/
PTArrayInitializer getInitializer();
/**
* Sets the value of the '{@link org.eclipse.jem.internal.instantiation.PTArrayCreation#getInitializer Initializer}' containment reference.
*
*
* @param value the new value of the 'Initializer' containment reference.
* @see #getInitializer()
* @generated
*/
void setInitializer(PTArrayInitializer value);
} // ArrayCreation