EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.spa.expression.impl]

COVERAGE SUMMARY FOR SOURCE FILE [SequenceImpl.java]

nameclass, %method, %block, %line, %
SequenceImpl.java0%   (0/1)0%   (0/13)0%   (0/262)0%   (0/67)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SequenceImpl0%   (0/1)0%   (0/13)0%   (0/262)0%   (0/67)
SequenceImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
basicSetLeftRegExp (Expression, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetRightRegExp (Expression, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/18)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/20)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getLeftRegExp (): Expression 0%   (0/1)0%   (0/3)0%   (0/1)
getRightRegExp (): Expression 0%   (0/1)0%   (0/3)0%   (0/1)
setLeftRegExp (Expression): void 0%   (0/1)0%   (0/52)0%   (0/11)
setRightRegExp (Expression): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.spa.expression.impl;
8 
9import de.uka.ipd.sdq.spa.expression.Expression;
10import de.uka.ipd.sdq.spa.expression.ExpressionPackage;
11import de.uka.ipd.sdq.spa.expression.Sequence;
12 
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15 
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18 
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Sequence</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.spa.expression.impl.SequenceImpl#getLeftRegExp <em>Left Reg Exp</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.spa.expression.impl.SequenceImpl#getRightRegExp <em>Right Reg Exp</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class SequenceImpl extends OperationImpl implements Sequence {
36        /**
37         * The cached value of the '{@link #getLeftRegExp() <em>Left Reg Exp</em>}' containment reference.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getLeftRegExp()
41         * @generated
42         * @ordered
43         */
44        protected Expression leftRegExp = null;
45 
46        /**
47         * The cached value of the '{@link #getRightRegExp() <em>Right Reg Exp</em>}' containment reference.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getRightRegExp()
51         * @generated
52         * @ordered
53         */
54        protected Expression rightRegExp = null;
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        protected SequenceImpl() {
62                super();
63        }
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        @Override
71        protected EClass eStaticClass() {
72                return ExpressionPackage.Literals.SEQUENCE;
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        public Expression getLeftRegExp() {
81                return leftRegExp;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        public NotificationChain basicSetLeftRegExp(Expression newLeftRegExp, NotificationChain msgs) {
90                Expression oldLeftRegExp = leftRegExp;
91                leftRegExp = newLeftRegExp;
92                if (eNotificationRequired()) {
93                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.SEQUENCE__LEFT_REG_EXP, oldLeftRegExp, newLeftRegExp);
94                        if (msgs == null) msgs = notification; else msgs.add(notification);
95                }
96                return msgs;
97        }
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        public void setLeftRegExp(Expression newLeftRegExp) {
105                if (newLeftRegExp != leftRegExp) {
106                        NotificationChain msgs = null;
107                        if (leftRegExp != null)
108                                msgs = ((InternalEObject)leftRegExp).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.SEQUENCE__LEFT_REG_EXP, null, msgs);
109                        if (newLeftRegExp != null)
110                                msgs = ((InternalEObject)newLeftRegExp).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.SEQUENCE__LEFT_REG_EXP, null, msgs);
111                        msgs = basicSetLeftRegExp(newLeftRegExp, msgs);
112                        if (msgs != null) msgs.dispatch();
113                }
114                else if (eNotificationRequired())
115                        eNotify(new ENotificationImpl(this, Notification.SET, ExpressionPackage.SEQUENCE__LEFT_REG_EXP, newLeftRegExp, newLeftRegExp));
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public Expression getRightRegExp() {
124                return rightRegExp;
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        public NotificationChain basicSetRightRegExp(Expression newRightRegExp, NotificationChain msgs) {
133                Expression oldRightRegExp = rightRegExp;
134                rightRegExp = newRightRegExp;
135                if (eNotificationRequired()) {
136                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.SEQUENCE__RIGHT_REG_EXP, oldRightRegExp, newRightRegExp);
137                        if (msgs == null) msgs = notification; else msgs.add(notification);
138                }
139                return msgs;
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        public void setRightRegExp(Expression newRightRegExp) {
148                if (newRightRegExp != rightRegExp) {
149                        NotificationChain msgs = null;
150                        if (rightRegExp != null)
151                                msgs = ((InternalEObject)rightRegExp).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.SEQUENCE__RIGHT_REG_EXP, null, msgs);
152                        if (newRightRegExp != null)
153                                msgs = ((InternalEObject)newRightRegExp).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.SEQUENCE__RIGHT_REG_EXP, null, msgs);
154                        msgs = basicSetRightRegExp(newRightRegExp, msgs);
155                        if (msgs != null) msgs.dispatch();
156                }
157                else if (eNotificationRequired())
158                        eNotify(new ENotificationImpl(this, Notification.SET, ExpressionPackage.SEQUENCE__RIGHT_REG_EXP, newRightRegExp, newRightRegExp));
159        }
160 
161        /**
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @generated
165         */
166        @Override
167        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
168                switch (featureID) {
169                        case ExpressionPackage.SEQUENCE__LEFT_REG_EXP:
170                                return basicSetLeftRegExp(null, msgs);
171                        case ExpressionPackage.SEQUENCE__RIGHT_REG_EXP:
172                                return basicSetRightRegExp(null, msgs);
173                }
174                return super.eInverseRemove(otherEnd, featureID, msgs);
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        @Override
183        public Object eGet(int featureID, boolean resolve, boolean coreType) {
184                switch (featureID) {
185                        case ExpressionPackage.SEQUENCE__LEFT_REG_EXP:
186                                return getLeftRegExp();
187                        case ExpressionPackage.SEQUENCE__RIGHT_REG_EXP:
188                                return getRightRegExp();
189                }
190                return super.eGet(featureID, resolve, coreType);
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        @Override
199        public void eSet(int featureID, Object newValue) {
200                switch (featureID) {
201                        case ExpressionPackage.SEQUENCE__LEFT_REG_EXP:
202                                setLeftRegExp((Expression)newValue);
203                                return;
204                        case ExpressionPackage.SEQUENCE__RIGHT_REG_EXP:
205                                setRightRegExp((Expression)newValue);
206                                return;
207                }
208                super.eSet(featureID, newValue);
209        }
210 
211        /**
212         * <!-- begin-user-doc -->
213         * <!-- end-user-doc -->
214         * @generated
215         */
216        @Override
217        public void eUnset(int featureID) {
218                switch (featureID) {
219                        case ExpressionPackage.SEQUENCE__LEFT_REG_EXP:
220                                setLeftRegExp((Expression)null);
221                                return;
222                        case ExpressionPackage.SEQUENCE__RIGHT_REG_EXP:
223                                setRightRegExp((Expression)null);
224                                return;
225                }
226                super.eUnset(featureID);
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        @Override
235        public boolean eIsSet(int featureID) {
236                switch (featureID) {
237                        case ExpressionPackage.SEQUENCE__LEFT_REG_EXP:
238                                return leftRegExp != null;
239                        case ExpressionPackage.SEQUENCE__RIGHT_REG_EXP:
240                                return rightRegExp != null;
241                }
242                return super.eIsSet(featureID);
243        }
244 
245} //SequenceImpl

[all classes][de.uka.ipd.sdq.spa.expression.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov