blob: 0b63ede22a581cd4106c6755f36e13bb3f2ae9d9 [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2009 Mia-Software.
* 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:
*
* Fabien Giquel (Mia-Software) - initial API and implementation
* Gregoire DUPE (Mia-Software) - initial API and implementation
* *******************************************************************************
*
* $Id$
*/
package org.eclipse.gmt.modisco.java.nousages.cdo.impl;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.gmt.modisco.java.AbstractMethodInvocation;
import org.eclipse.gmt.modisco.java.ImportDeclaration;
import org.eclipse.gmt.modisco.java.MethodDeclaration;
import org.eclipse.gmt.modisco.java.MethodRef;
import org.eclipse.gmt.modisco.java.TypeAccess;
import org.eclipse.gmt.modisco.java.nousages.cdo.meta.JavaPackage;
/**
* <!-- begin-user-doc --> An implementation of the model object '
* <em><b>Method Declaration</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.gmt.modisco.java.nousages.cdo.impl.MethodDeclarationImpl#getExtraArrayDimensions <em>Extra Array Dimensions</em>}</li>
* <li>{@link org.eclipse.gmt.modisco.java.nousages.cdo.impl.MethodDeclarationImpl#getReturnType <em>Return Type</em>}</li>
* <li>{@link org.eclipse.gmt.modisco.java.nousages.cdo.impl.MethodDeclarationImpl#getRedefinedMethodDeclaration <em>Redefined Method Declaration</em>}</li>
* <li>{@link org.eclipse.gmt.modisco.java.nousages.cdo.impl.MethodDeclarationImpl#getRedefinitions <em>Redefinitions</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class MethodDeclarationImpl extends AbstractMethodDeclarationImpl
implements MethodDeclaration {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected MethodDeclarationImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.eINSTANCE.getMethodDeclaration();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public int getExtraArrayDimensions() {
return (Integer)eGet(JavaPackage.eINSTANCE.getMethodDeclaration_ExtraArrayDimensions(), true);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setExtraArrayDimensions(int newExtraArrayDimensions) {
eSet(JavaPackage.eINSTANCE.getMethodDeclaration_ExtraArrayDimensions(), newExtraArrayDimensions);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public TypeAccess getReturnType() {
return (TypeAccess)eGet(JavaPackage.eINSTANCE.getMethodDeclaration_ReturnType(), true);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setReturnType(TypeAccess newReturnType) {
eSet(JavaPackage.eINSTANCE.getMethodDeclaration_ReturnType(), newReturnType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public MethodDeclaration getRedefinedMethodDeclaration() {
return (MethodDeclaration)eGet(JavaPackage.eINSTANCE.getMethodDeclaration_RedefinedMethodDeclaration(), true);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setRedefinedMethodDeclaration(
MethodDeclaration newRedefinedMethodDeclaration) {
eSet(JavaPackage.eINSTANCE.getMethodDeclaration_RedefinedMethodDeclaration(), newRedefinedMethodDeclaration);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
public EList<MethodDeclaration> getRedefinitions() {
return (EList<MethodDeclaration>)eGet(JavaPackage.eINSTANCE.getMethodDeclaration_Redefinitions(), true);
}
public EList<AbstractMethodInvocation> getUsages() {
// no usages references
return null;
}
public EList<MethodRef> getUsagesInDocComments() {
// no usages references
return null;
}
public EList<ImportDeclaration> getUsagesInImports() {
// no usages references
return null;
}
} // MethodDeclarationImpl