blob: 6d190bce3e269e134d20fdd04da32522ba7e5e9f [file] [log] [blame]
/**
* *******************************************************************************
* 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.Expression;
import org.eclipse.modisco.java.FieldAccess;
import org.eclipse.modisco.java.SingleVariableAccess;
import org.eclipse.modisco.java.cdo.meta.JavaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Field Access</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.modisco.java.cdo.impl.FieldAccessImpl#getField <em>Field</em>}</li>
* <li>{@link org.eclipse.modisco.java.cdo.impl.FieldAccessImpl#getExpression <em>Expression</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class FieldAccessImpl extends ExpressionImpl implements FieldAccess {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected FieldAccessImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.eINSTANCE.getFieldAccess();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SingleVariableAccess getField() {
return (SingleVariableAccess)eGet(JavaPackage.eINSTANCE.getFieldAccess_Field(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setField(SingleVariableAccess newField) {
eSet(JavaPackage.eINSTANCE.getFieldAccess_Field(), newField);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Expression getExpression() {
return (Expression)eGet(JavaPackage.eINSTANCE.getFieldAccess_Expression(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
eSet(JavaPackage.eINSTANCE.getFieldAccess_Expression(), newExpression);
}
} //FieldAccessImpl