| /**
|
| * *******************************************************************************
|
| * Copyright (c) 2009, 2019 Mia-Software and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v2.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v20.html
|
| *
|
| * Contributors:
|
| *
|
| * Fabien Giquel (Mia-Software) - initial API and implementation
|
| * Gregoire DUPE (Mia-Software) - initial API and implementation
|
| * *******************************************************************************
|
| *
|
| * $Id$
|
| */ |
| package org.eclipse.modisco.java.cdo.impl;
|
|
|
| import org.eclipse.emf.ecore.EClass;
|
| import org.eclipse.modisco.java.MethodRefParameter;
|
| import org.eclipse.modisco.java.TypeAccess;
|
| import org.eclipse.modisco.java.cdo.meta.JavaPackage;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * An implementation of the model object '<em><b>Method Ref Parameter</b></em>'.
|
| * <!-- end-user-doc -->
|
| * <p>
|
| * The following features are implemented:
|
| * <ul>
|
| * <li>{@link org.eclipse.modisco.java.cdo.impl.MethodRefParameterImpl#getName <em>Name</em>}</li>
|
| * <li>{@link org.eclipse.modisco.java.cdo.impl.MethodRefParameterImpl#isVarargs <em>Varargs</em>}</li>
|
| * <li>{@link org.eclipse.modisco.java.cdo.impl.MethodRefParameterImpl#getType <em>Type</em>}</li>
|
| * </ul>
|
| * </p>
|
| *
|
| * @generated
|
| */
|
| public class MethodRefParameterImpl extends ASTNodeImpl implements MethodRefParameter {
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected MethodRefParameterImpl() {
|
| super();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| @Override
|
| protected EClass eStaticClass() {
|
| return JavaPackage.eINSTANCE.getMethodRefParameter();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public String getName() {
|
| return (String)eGet(JavaPackage.eINSTANCE.getMethodRefParameter_Name(), true);
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public void setName(String newName) {
|
| eSet(JavaPackage.eINSTANCE.getMethodRefParameter_Name(), newName);
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public boolean isVarargs() {
|
| return (Boolean)eGet(JavaPackage.eINSTANCE.getMethodRefParameter_Varargs(), true);
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public void setVarargs(boolean newVarargs) {
|
| eSet(JavaPackage.eINSTANCE.getMethodRefParameter_Varargs(), newVarargs);
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public TypeAccess getType() {
|
| return (TypeAccess)eGet(JavaPackage.eINSTANCE.getMethodRefParameter_Type(), true);
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public void setType(TypeAccess newType) {
|
| eSet(JavaPackage.eINSTANCE.getMethodRefParameter_Type(), newType);
|
| }
|
|
|
| } //MethodRefParameterImpl
|