Permalink
Browse files

added missing files

  • Loading branch information...
rju committed Feb 28, 2015
1 parent 857cf8f commit 335245e4e340effdda097d54df368e9b8ac10a62
@@ -0,0 +1,41 @@
/**
*/
package org.spp.cocome.behavior.behavior;

import org.eclipse.emf.common.util.EList;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instantiation Expression</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.spp.cocome.behavior.behavior.InstantiationExpression#getParameters <em>Parameters</em>}</li>
* </ul>
* </p>
*
* @see org.spp.cocome.behavior.behavior.BehaviorPackage#getInstantiationExpression()
* @model
* @generated
*/
public interface InstantiationExpression extends Expression
{
/**
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
* The list contents are of type {@link org.spp.cocome.behavior.behavior.Expression}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parameters</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parameters</em>' containment reference list.
* @see org.spp.cocome.behavior.behavior.BehaviorPackage#getInstantiationExpression_Parameters()
* @model containment="true"
* @generated
*/
EList<Expression> getParameters();

} // InstantiationExpression
@@ -0,0 +1,165 @@
/**
*/
package org.spp.cocome.behavior.behavior.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import org.spp.cocome.behavior.behavior.BehaviorPackage;
import org.spp.cocome.behavior.behavior.Expression;
import org.spp.cocome.behavior.behavior.InstantiationExpression;

/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instantiation Expression</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.spp.cocome.behavior.behavior.impl.InstantiationExpressionImpl#getParameters <em>Parameters</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class InstantiationExpressionImpl extends ExpressionImpl implements InstantiationExpression
{
/**
* The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameters()
* @generated
* @ordered
*/
protected EList<Expression> parameters;

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstantiationExpressionImpl()
{
super();
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return BehaviorPackage.Literals.INSTANTIATION_EXPRESSION;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Expression> getParameters()
{
if (parameters == null)
{
parameters = new EObjectContainmentEList<Expression>(Expression.class, this, BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS);
}
return parameters;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS:
return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS:
return getParameters();
}
return super.eGet(featureID, resolve, coreType);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS:
getParameters().clear();
getParameters().addAll((Collection<? extends Expression>)newValue);
return;
}
super.eSet(featureID, newValue);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS:
getParameters().clear();
return;
}
super.eUnset(featureID);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case BehaviorPackage.INSTANTIATION_EXPRESSION__PARAMETERS:
return parameters != null && !parameters.isEmpty();
}
return super.eIsSet(featureID);
}

} //InstantiationExpressionImpl

0 comments on commit 335245e

Please sign in to comment.