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

COVERAGE SUMMARY FOR SOURCE FILE [StoexSwitch.java]

nameclass, %method, %block, %line, %
StoexSwitch.java0%   (0/1)0%   (0/36)0%   (0/1563)0%   (0/333)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class StoexSwitch0%   (0/1)0%   (0/36)0%   (0/1563)0%   (0/333)
StoexSwitch (): void 0%   (0/1)0%   (0/7)0%   (0/4)
caseAbstractNamedReference (AbstractNamedReference): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseAtom (Atom): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseBoolLiteral (BoolLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseBooleanExpression (BooleanExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseBooleanOperatorExpression (BooleanOperatorExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseCompareExpression (CompareExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseComparison (Comparison): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseDoubleLiteral (DoubleLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseExpression (Expression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseFunctionLiteral (FunctionLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseIfElse (IfElse): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseIfElseExpression (IfElseExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseIntLiteral (IntLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseNamespaceReference (NamespaceReference): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseNegativeExpression (NegativeExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseNotExpression (NotExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseNumericLiteral (NumericLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseParenthesis (Parenthesis): Object 0%   (0/1)0%   (0/2)0%   (0/1)
casePower (Power): Object 0%   (0/1)0%   (0/2)0%   (0/1)
casePowerExpression (PowerExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseProbabilityFunctionLiteral (ProbabilityFunctionLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseProduct (Product): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseProductExpression (ProductExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseRandomVariable (RandomVariable): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseStringLiteral (StringLiteral): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseTerm (Term): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseTermExpression (TermExpression): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseUnary (Unary): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseUnitCarryingElement (UnitCarryingElement): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseVariable (Variable): Object 0%   (0/1)0%   (0/2)0%   (0/1)
caseVariableReference (VariableReference): Object 0%   (0/1)0%   (0/2)0%   (0/1)
defaultCase (EObject): Object 0%   (0/1)0%   (0/2)0%   (0/1)
doSwitch (EClass, EObject): Object 0%   (0/1)0%   (0/28)0%   (0/7)
doSwitch (EObject): Object 0%   (0/1)0%   (0/6)0%   (0/1)
doSwitch (int, EObject): Object 0%   (0/1)0%   (0/1458)0%   (0/289)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.stoex.util;
8 
9import java.util.List;
10 
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.EObject;
13 
14import de.uka.ipd.sdq.stoex.AbstractNamedReference;
15import de.uka.ipd.sdq.stoex.Atom;
16import de.uka.ipd.sdq.stoex.BoolLiteral;
17import de.uka.ipd.sdq.stoex.BooleanExpression;
18import de.uka.ipd.sdq.stoex.BooleanOperatorExpression;
19import de.uka.ipd.sdq.stoex.CompareExpression;
20import de.uka.ipd.sdq.stoex.Comparison;
21import de.uka.ipd.sdq.stoex.DoubleLiteral;
22import de.uka.ipd.sdq.stoex.Expression;
23import de.uka.ipd.sdq.stoex.FunctionLiteral;
24import de.uka.ipd.sdq.stoex.IfElse;
25import de.uka.ipd.sdq.stoex.IfElseExpression;
26import de.uka.ipd.sdq.stoex.IntLiteral;
27import de.uka.ipd.sdq.stoex.NamespaceReference;
28import de.uka.ipd.sdq.stoex.NegativeExpression;
29import de.uka.ipd.sdq.stoex.NotExpression;
30import de.uka.ipd.sdq.stoex.NumericLiteral;
31import de.uka.ipd.sdq.stoex.Parenthesis;
32import de.uka.ipd.sdq.stoex.Power;
33import de.uka.ipd.sdq.stoex.PowerExpression;
34import de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral;
35import de.uka.ipd.sdq.stoex.Product;
36import de.uka.ipd.sdq.stoex.ProductExpression;
37import de.uka.ipd.sdq.stoex.RandomVariable;
38import de.uka.ipd.sdq.stoex.StoexPackage;
39import de.uka.ipd.sdq.stoex.StringLiteral;
40import de.uka.ipd.sdq.stoex.Term;
41import de.uka.ipd.sdq.stoex.TermExpression;
42import de.uka.ipd.sdq.stoex.Unary;
43import de.uka.ipd.sdq.stoex.Variable;
44import de.uka.ipd.sdq.stoex.VariableReference;
45import de.uka.ipd.sdq.units.UnitCarryingElement;
46 
47/**
48 * <!-- begin-user-doc -->
49 * The <b>Switch</b> for the model's inheritance hierarchy.
50 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
51 * to invoke the <code>caseXXX</code> method for each class of the model,
52 * starting with the actual class of the object
53 * and proceeding up the inheritance hierarchy
54 * until a non-null result is returned,
55 * which is the result of the switch.
56 * <!-- end-user-doc -->
57 * @see de.uka.ipd.sdq.stoex.StoexPackage
58 * @generated
59 */
60public class StoexSwitch<T> {
61        /**
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @generated
65         */
66        public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe";
67        /**
68         * The cached model package
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @generated
72         */
73        protected static StoexPackage modelPackage;
74 
75        /**
76         * Creates an instance of the switch.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public StoexSwitch() {
82                if (modelPackage == null) {
83                        modelPackage = StoexPackage.eINSTANCE;
84                }
85        }
86 
87        /**
88         * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @return the first non-null result returned by a <code>caseXXX</code> call.
92         * @generated
93         */
94        public T doSwitch(EObject theEObject) {
95                return doSwitch(theEObject.eClass(), theEObject);
96        }
97 
98        /**
99         * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @return the first non-null result returned by a <code>caseXXX</code> call.
103         * @generated
104         */
105        protected T doSwitch(EClass theEClass, EObject theEObject) {
106                if (theEClass.eContainer() == modelPackage) {
107                        return doSwitch(theEClass.getClassifierID(), theEObject);
108                }
109                else {
110                        List<EClass> eSuperTypes = theEClass.getESuperTypes();
111                        return
112                                eSuperTypes.isEmpty() ?
113                                        defaultCase(theEObject) :
114                                        doSwitch(eSuperTypes.get(0), theEObject);
115                }
116        }
117 
118        /**
119         * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @return the first non-null result returned by a <code>caseXXX</code> call.
123         * @generated
124         */
125        protected T doSwitch(int classifierID, EObject theEObject) {
126                switch (classifierID) {
127                        case StoexPackage.VARIABLE_REFERENCE: {
128                                VariableReference variableReference = (VariableReference)theEObject;
129                                T result = caseVariableReference(variableReference);
130                                if (result == null) result = caseAbstractNamedReference(variableReference);
131                                if (result == null) result = defaultCase(theEObject);
132                                return result;
133                        }
134                        case StoexPackage.ABSTRACT_NAMED_REFERENCE: {
135                                AbstractNamedReference abstractNamedReference = (AbstractNamedReference)theEObject;
136                                T result = caseAbstractNamedReference(abstractNamedReference);
137                                if (result == null) result = defaultCase(theEObject);
138                                return result;
139                        }
140                        case StoexPackage.NAMESPACE_REFERENCE: {
141                                NamespaceReference namespaceReference = (NamespaceReference)theEObject;
142                                T result = caseNamespaceReference(namespaceReference);
143                                if (result == null) result = caseAbstractNamedReference(namespaceReference);
144                                if (result == null) result = defaultCase(theEObject);
145                                return result;
146                        }
147                        case StoexPackage.VARIABLE: {
148                                Variable variable = (Variable)theEObject;
149                                T result = caseVariable(variable);
150                                if (result == null) result = caseAtom(variable);
151                                if (result == null) result = caseUnary(variable);
152                                if (result == null) result = casePower(variable);
153                                if (result == null) result = caseProduct(variable);
154                                if (result == null) result = caseTerm(variable);
155                                if (result == null) result = caseComparison(variable);
156                                if (result == null) result = caseBooleanExpression(variable);
157                                if (result == null) result = caseIfElse(variable);
158                                if (result == null) result = caseExpression(variable);
159                                if (result == null) result = defaultCase(theEObject);
160                                return result;
161                        }
162                        case StoexPackage.ATOM: {
163                                Atom atom = (Atom)theEObject;
164                                T result = caseAtom(atom);
165                                if (result == null) result = caseUnary(atom);
166                                if (result == null) result = casePower(atom);
167                                if (result == null) result = caseProduct(atom);
168                                if (result == null) result = caseTerm(atom);
169                                if (result == null) result = caseComparison(atom);
170                                if (result == null) result = caseBooleanExpression(atom);
171                                if (result == null) result = caseIfElse(atom);
172                                if (result == null) result = caseExpression(atom);
173                                if (result == null) result = defaultCase(theEObject);
174                                return result;
175                        }
176                        case StoexPackage.UNARY: {
177                                Unary unary = (Unary)theEObject;
178                                T result = caseUnary(unary);
179                                if (result == null) result = casePower(unary);
180                                if (result == null) result = caseProduct(unary);
181                                if (result == null) result = caseTerm(unary);
182                                if (result == null) result = caseComparison(unary);
183                                if (result == null) result = caseBooleanExpression(unary);
184                                if (result == null) result = caseIfElse(unary);
185                                if (result == null) result = caseExpression(unary);
186                                if (result == null) result = defaultCase(theEObject);
187                                return result;
188                        }
189                        case StoexPackage.POWER: {
190                                Power power = (Power)theEObject;
191                                T result = casePower(power);
192                                if (result == null) result = caseProduct(power);
193                                if (result == null) result = caseTerm(power);
194                                if (result == null) result = caseComparison(power);
195                                if (result == null) result = caseBooleanExpression(power);
196                                if (result == null) result = caseIfElse(power);
197                                if (result == null) result = caseExpression(power);
198                                if (result == null) result = defaultCase(theEObject);
199                                return result;
200                        }
201                        case StoexPackage.PRODUCT: {
202                                Product product = (Product)theEObject;
203                                T result = caseProduct(product);
204                                if (result == null) result = caseTerm(product);
205                                if (result == null) result = caseComparison(product);
206                                if (result == null) result = caseBooleanExpression(product);
207                                if (result == null) result = caseIfElse(product);
208                                if (result == null) result = caseExpression(product);
209                                if (result == null) result = defaultCase(theEObject);
210                                return result;
211                        }
212                        case StoexPackage.TERM: {
213                                Term term = (Term)theEObject;
214                                T result = caseTerm(term);
215                                if (result == null) result = caseComparison(term);
216                                if (result == null) result = caseBooleanExpression(term);
217                                if (result == null) result = caseIfElse(term);
218                                if (result == null) result = caseExpression(term);
219                                if (result == null) result = defaultCase(theEObject);
220                                return result;
221                        }
222                        case StoexPackage.COMPARISON: {
223                                Comparison comparison = (Comparison)theEObject;
224                                T result = caseComparison(comparison);
225                                if (result == null) result = caseBooleanExpression(comparison);
226                                if (result == null) result = caseIfElse(comparison);
227                                if (result == null) result = caseExpression(comparison);
228                                if (result == null) result = defaultCase(theEObject);
229                                return result;
230                        }
231                        case StoexPackage.BOOLEAN_EXPRESSION: {
232                                BooleanExpression booleanExpression = (BooleanExpression)theEObject;
233                                T result = caseBooleanExpression(booleanExpression);
234                                if (result == null) result = caseIfElse(booleanExpression);
235                                if (result == null) result = caseExpression(booleanExpression);
236                                if (result == null) result = defaultCase(theEObject);
237                                return result;
238                        }
239                        case StoexPackage.IF_ELSE: {
240                                IfElse ifElse = (IfElse)theEObject;
241                                T result = caseIfElse(ifElse);
242                                if (result == null) result = caseExpression(ifElse);
243                                if (result == null) result = defaultCase(theEObject);
244                                return result;
245                        }
246                        case StoexPackage.EXPRESSION: {
247                                Expression expression = (Expression)theEObject;
248                                T result = caseExpression(expression);
249                                if (result == null) result = defaultCase(theEObject);
250                                return result;
251                        }
252                        case StoexPackage.TERM_EXPRESSION: {
253                                TermExpression termExpression = (TermExpression)theEObject;
254                                T result = caseTermExpression(termExpression);
255                                if (result == null) result = caseTerm(termExpression);
256                                if (result == null) result = caseComparison(termExpression);
257                                if (result == null) result = caseBooleanExpression(termExpression);
258                                if (result == null) result = caseIfElse(termExpression);
259                                if (result == null) result = caseExpression(termExpression);
260                                if (result == null) result = defaultCase(theEObject);
261                                return result;
262                        }
263                        case StoexPackage.PRODUCT_EXPRESSION: {
264                                ProductExpression productExpression = (ProductExpression)theEObject;
265                                T result = caseProductExpression(productExpression);
266                                if (result == null) result = caseProduct(productExpression);
267                                if (result == null) result = caseTerm(productExpression);
268                                if (result == null) result = caseComparison(productExpression);
269                                if (result == null) result = caseBooleanExpression(productExpression);
270                                if (result == null) result = caseIfElse(productExpression);
271                                if (result == null) result = caseExpression(productExpression);
272                                if (result == null) result = defaultCase(theEObject);
273                                return result;
274                        }
275                        case StoexPackage.PROBABILITY_FUNCTION_LITERAL: {
276                                ProbabilityFunctionLiteral probabilityFunctionLiteral = (ProbabilityFunctionLiteral)theEObject;
277                                T result = caseProbabilityFunctionLiteral(probabilityFunctionLiteral);
278                                if (result == null) result = caseAtom(probabilityFunctionLiteral);
279                                if (result == null) result = caseUnary(probabilityFunctionLiteral);
280                                if (result == null) result = casePower(probabilityFunctionLiteral);
281                                if (result == null) result = caseProduct(probabilityFunctionLiteral);
282                                if (result == null) result = caseTerm(probabilityFunctionLiteral);
283                                if (result == null) result = caseComparison(probabilityFunctionLiteral);
284                                if (result == null) result = caseBooleanExpression(probabilityFunctionLiteral);
285                                if (result == null) result = caseIfElse(probabilityFunctionLiteral);
286                                if (result == null) result = caseExpression(probabilityFunctionLiteral);
287                                if (result == null) result = defaultCase(theEObject);
288                                return result;
289                        }
290                        case StoexPackage.PARENTHESIS: {
291                                Parenthesis parenthesis = (Parenthesis)theEObject;
292                                T result = caseParenthesis(parenthesis);
293                                if (result == null) result = caseAtom(parenthesis);
294                                if (result == null) result = caseUnary(parenthesis);
295                                if (result == null) result = casePower(parenthesis);
296                                if (result == null) result = caseProduct(parenthesis);
297                                if (result == null) result = caseTerm(parenthesis);
298                                if (result == null) result = caseComparison(parenthesis);
299                                if (result == null) result = caseBooleanExpression(parenthesis);
300                                if (result == null) result = caseIfElse(parenthesis);
301                                if (result == null) result = caseExpression(parenthesis);
302                                if (result == null) result = defaultCase(theEObject);
303                                return result;
304                        }
305                        case StoexPackage.NUMERIC_LITERAL: {
306                                NumericLiteral numericLiteral = (NumericLiteral)theEObject;
307                                T result = caseNumericLiteral(numericLiteral);
308                                if (result == null) result = caseUnitCarryingElement(numericLiteral);
309                                if (result == null) result = caseAtom(numericLiteral);
310                                if (result == null) result = caseUnary(numericLiteral);
311                                if (result == null) result = casePower(numericLiteral);
312                                if (result == null) result = caseProduct(numericLiteral);
313                                if (result == null) result = caseTerm(numericLiteral);
314                                if (result == null) result = caseComparison(numericLiteral);
315                                if (result == null) result = caseBooleanExpression(numericLiteral);
316                                if (result == null) result = caseIfElse(numericLiteral);
317                                if (result == null) result = caseExpression(numericLiteral);
318                                if (result == null) result = defaultCase(theEObject);
319                                return result;
320                        }
321                        case StoexPackage.INT_LITERAL: {
322                                IntLiteral intLiteral = (IntLiteral)theEObject;
323                                T result = caseIntLiteral(intLiteral);
324                                if (result == null) result = caseNumericLiteral(intLiteral);
325                                if (result == null) result = caseUnitCarryingElement(intLiteral);
326                                if (result == null) result = caseAtom(intLiteral);
327                                if (result == null) result = caseUnary(intLiteral);
328                                if (result == null) result = casePower(intLiteral);
329                                if (result == null) result = caseProduct(intLiteral);
330                                if (result == null) result = caseTerm(intLiteral);
331                                if (result == null) result = caseComparison(intLiteral);
332                                if (result == null) result = caseBooleanExpression(intLiteral);
333                                if (result == null) result = caseIfElse(intLiteral);
334                                if (result == null) result = caseExpression(intLiteral);
335                                if (result == null) result = defaultCase(theEObject);
336                                return result;
337                        }
338                        case StoexPackage.DOUBLE_LITERAL: {
339                                DoubleLiteral doubleLiteral = (DoubleLiteral)theEObject;
340                                T result = caseDoubleLiteral(doubleLiteral);
341                                if (result == null) result = caseNumericLiteral(doubleLiteral);
342                                if (result == null) result = caseUnitCarryingElement(doubleLiteral);
343                                if (result == null) result = caseAtom(doubleLiteral);
344                                if (result == null) result = caseUnary(doubleLiteral);
345                                if (result == null) result = casePower(doubleLiteral);
346                                if (result == null) result = caseProduct(doubleLiteral);
347                                if (result == null) result = caseTerm(doubleLiteral);
348                                if (result == null) result = caseComparison(doubleLiteral);
349                                if (result == null) result = caseBooleanExpression(doubleLiteral);
350                                if (result == null) result = caseIfElse(doubleLiteral);
351                                if (result == null) result = caseExpression(doubleLiteral);
352                                if (result == null) result = defaultCase(theEObject);
353                                return result;
354                        }
355                        case StoexPackage.COMPARE_EXPRESSION: {
356                                CompareExpression compareExpression = (CompareExpression)theEObject;
357                                T result = caseCompareExpression(compareExpression);
358                                if (result == null) result = caseComparison(compareExpression);
359                                if (result == null) result = caseBooleanExpression(compareExpression);
360                                if (result == null) result = caseIfElse(compareExpression);
361                                if (result == null) result = caseExpression(compareExpression);
362                                if (result == null) result = defaultCase(theEObject);
363                                return result;
364                        }
365                        case StoexPackage.BOOL_LITERAL: {
366                                BoolLiteral boolLiteral = (BoolLiteral)theEObject;
367                                T result = caseBoolLiteral(boolLiteral);
368                                if (result == null) result = caseAtom(boolLiteral);
369                                if (result == null) result = caseUnary(boolLiteral);
370                                if (result == null) result = casePower(boolLiteral);
371                                if (result == null) result = caseProduct(boolLiteral);
372                                if (result == null) result = caseTerm(boolLiteral);
373                                if (result == null) result = caseComparison(boolLiteral);
374                                if (result == null) result = caseBooleanExpression(boolLiteral);
375                                if (result == null) result = caseIfElse(boolLiteral);
376                                if (result == null) result = caseExpression(boolLiteral);
377                                if (result == null) result = defaultCase(theEObject);
378                                return result;
379                        }
380                        case StoexPackage.STRING_LITERAL: {
381                                StringLiteral stringLiteral = (StringLiteral)theEObject;
382                                T result = caseStringLiteral(stringLiteral);
383                                if (result == null) result = caseAtom(stringLiteral);
384                                if (result == null) result = caseUnary(stringLiteral);
385                                if (result == null) result = casePower(stringLiteral);
386                                if (result == null) result = caseProduct(stringLiteral);
387                                if (result == null) result = caseTerm(stringLiteral);
388                                if (result == null) result = caseComparison(stringLiteral);
389                                if (result == null) result = caseBooleanExpression(stringLiteral);
390                                if (result == null) result = caseIfElse(stringLiteral);
391                                if (result == null) result = caseExpression(stringLiteral);
392                                if (result == null) result = defaultCase(theEObject);
393                                return result;
394                        }
395                        case StoexPackage.POWER_EXPRESSION: {
396                                PowerExpression powerExpression = (PowerExpression)theEObject;
397                                T result = casePowerExpression(powerExpression);
398                                if (result == null) result = casePower(powerExpression);
399                                if (result == null) result = caseProduct(powerExpression);
400                                if (result == null) result = caseTerm(powerExpression);
401                                if (result == null) result = caseComparison(powerExpression);
402                                if (result == null) result = caseBooleanExpression(powerExpression);
403                                if (result == null) result = caseIfElse(powerExpression);
404                                if (result == null) result = caseExpression(powerExpression);
405                                if (result == null) result = defaultCase(theEObject);
406                                return result;
407                        }
408                        case StoexPackage.BOOLEAN_OPERATOR_EXPRESSION: {
409                                BooleanOperatorExpression booleanOperatorExpression = (BooleanOperatorExpression)theEObject;
410                                T result = caseBooleanOperatorExpression(booleanOperatorExpression);
411                                if (result == null) result = caseBooleanExpression(booleanOperatorExpression);
412                                if (result == null) result = caseIfElse(booleanOperatorExpression);
413                                if (result == null) result = caseExpression(booleanOperatorExpression);
414                                if (result == null) result = defaultCase(theEObject);
415                                return result;
416                        }
417                        case StoexPackage.NOT_EXPRESSION: {
418                                NotExpression notExpression = (NotExpression)theEObject;
419                                T result = caseNotExpression(notExpression);
420                                if (result == null) result = caseUnary(notExpression);
421                                if (result == null) result = casePower(notExpression);
422                                if (result == null) result = caseProduct(notExpression);
423                                if (result == null) result = caseTerm(notExpression);
424                                if (result == null) result = caseComparison(notExpression);
425                                if (result == null) result = caseBooleanExpression(notExpression);
426                                if (result == null) result = caseIfElse(notExpression);
427                                if (result == null) result = caseExpression(notExpression);
428                                if (result == null) result = defaultCase(theEObject);
429                                return result;
430                        }
431                        case StoexPackage.NEGATIVE_EXPRESSION: {
432                                NegativeExpression negativeExpression = (NegativeExpression)theEObject;
433                                T result = caseNegativeExpression(negativeExpression);
434                                if (result == null) result = caseUnary(negativeExpression);
435                                if (result == null) result = casePower(negativeExpression);
436                                if (result == null) result = caseProduct(negativeExpression);
437                                if (result == null) result = caseTerm(negativeExpression);
438                                if (result == null) result = caseComparison(negativeExpression);
439                                if (result == null) result = caseBooleanExpression(negativeExpression);
440                                if (result == null) result = caseIfElse(negativeExpression);
441                                if (result == null) result = caseExpression(negativeExpression);
442                                if (result == null) result = defaultCase(theEObject);
443                                return result;
444                        }
445                        case StoexPackage.FUNCTION_LITERAL: {
446                                FunctionLiteral functionLiteral = (FunctionLiteral)theEObject;
447                                T result = caseFunctionLiteral(functionLiteral);
448                                if (result == null) result = caseAtom(functionLiteral);
449                                if (result == null) result = caseUnary(functionLiteral);
450                                if (result == null) result = casePower(functionLiteral);
451                                if (result == null) result = caseProduct(functionLiteral);
452                                if (result == null) result = caseTerm(functionLiteral);
453                                if (result == null) result = caseComparison(functionLiteral);
454                                if (result == null) result = caseBooleanExpression(functionLiteral);
455                                if (result == null) result = caseIfElse(functionLiteral);
456                                if (result == null) result = caseExpression(functionLiteral);
457                                if (result == null) result = defaultCase(theEObject);
458                                return result;
459                        }
460                        case StoexPackage.IF_ELSE_EXPRESSION: {
461                                IfElseExpression ifElseExpression = (IfElseExpression)theEObject;
462                                T result = caseIfElseExpression(ifElseExpression);
463                                if (result == null) result = caseIfElse(ifElseExpression);
464                                if (result == null) result = caseExpression(ifElseExpression);
465                                if (result == null) result = defaultCase(theEObject);
466                                return result;
467                        }
468                        case StoexPackage.RANDOM_VARIABLE: {
469                                RandomVariable randomVariable = (RandomVariable)theEObject;
470                                T result = caseRandomVariable(randomVariable);
471                                if (result == null) result = defaultCase(theEObject);
472                                return result;
473                        }
474                        default: return defaultCase(theEObject);
475                }
476        }
477 
478        /**
479         * Returns the result of interpreting the object as an instance of '<em>Variable Reference</em>'.
480         * <!-- begin-user-doc -->
481         * This implementation returns null;
482         * returning a non-null result will terminate the switch.
483         * <!-- end-user-doc -->
484         * @param object the target of the switch.
485         * @return the result of interpreting the object as an instance of '<em>Variable Reference</em>'.
486         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
487         * @generated
488         */
489        public T caseVariableReference(VariableReference object) {
490                return null;
491        }
492 
493        /**
494         * Returns the result of interpreting the object as an instance of '<em>Abstract Named Reference</em>'.
495         * <!-- begin-user-doc -->
496         * This implementation returns null;
497         * returning a non-null result will terminate the switch.
498         * <!-- end-user-doc -->
499         * @param object the target of the switch.
500         * @return the result of interpreting the object as an instance of '<em>Abstract Named Reference</em>'.
501         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
502         * @generated
503         */
504        public T caseAbstractNamedReference(AbstractNamedReference object) {
505                return null;
506        }
507 
508        /**
509         * Returns the result of interpreting the object as an instance of '<em>Namespace Reference</em>'.
510         * <!-- begin-user-doc -->
511         * This implementation returns null;
512         * returning a non-null result will terminate the switch.
513         * <!-- end-user-doc -->
514         * @param object the target of the switch.
515         * @return the result of interpreting the object as an instance of '<em>Namespace Reference</em>'.
516         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
517         * @generated
518         */
519        public T caseNamespaceReference(NamespaceReference object) {
520                return null;
521        }
522 
523        /**
524         * Returns the result of interpreting the object as an instance of '<em>Variable</em>'.
525         * <!-- begin-user-doc -->
526         * This implementation returns null;
527         * returning a non-null result will terminate the switch.
528         * <!-- end-user-doc -->
529         * @param object the target of the switch.
530         * @return the result of interpreting the object as an instance of '<em>Variable</em>'.
531         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
532         * @generated
533         */
534        public T caseVariable(Variable object) {
535                return null;
536        }
537 
538        /**
539         * Returns the result of interpreting the object as an instance of '<em>Atom</em>'.
540         * <!-- begin-user-doc -->
541         * This implementation returns null;
542         * returning a non-null result will terminate the switch.
543         * <!-- end-user-doc -->
544         * @param object the target of the switch.
545         * @return the result of interpreting the object as an instance of '<em>Atom</em>'.
546         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
547         * @generated
548         */
549        public T caseAtom(Atom object) {
550                return null;
551        }
552 
553        /**
554         * Returns the result of interpreting the object as an instance of '<em>Unary</em>'.
555         * <!-- begin-user-doc -->
556         * This implementation returns null;
557         * returning a non-null result will terminate the switch.
558         * <!-- end-user-doc -->
559         * @param object the target of the switch.
560         * @return the result of interpreting the object as an instance of '<em>Unary</em>'.
561         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
562         * @generated
563         */
564        public T caseUnary(Unary object) {
565                return null;
566        }
567 
568        /**
569         * Returns the result of interpreting the object as an instance of '<em>Power</em>'.
570         * <!-- begin-user-doc -->
571         * This implementation returns null;
572         * returning a non-null result will terminate the switch.
573         * <!-- end-user-doc -->
574         * @param object the target of the switch.
575         * @return the result of interpreting the object as an instance of '<em>Power</em>'.
576         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
577         * @generated
578         */
579        public T casePower(Power object) {
580                return null;
581        }
582 
583        /**
584         * Returns the result of interpreting the object as an instance of '<em>Product</em>'.
585         * <!-- begin-user-doc -->
586         * This implementation returns null;
587         * returning a non-null result will terminate the switch.
588         * <!-- end-user-doc -->
589         * @param object the target of the switch.
590         * @return the result of interpreting the object as an instance of '<em>Product</em>'.
591         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
592         * @generated
593         */
594        public T caseProduct(Product object) {
595                return null;
596        }
597 
598        /**
599         * Returns the result of interpreting the object as an instance of '<em>Term</em>'.
600         * <!-- begin-user-doc -->
601         * This implementation returns null;
602         * returning a non-null result will terminate the switch.
603         * <!-- end-user-doc -->
604         * @param object the target of the switch.
605         * @return the result of interpreting the object as an instance of '<em>Term</em>'.
606         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
607         * @generated
608         */
609        public T caseTerm(Term object) {
610                return null;
611        }
612 
613        /**
614         * Returns the result of interpreting the object as an instance of '<em>Comparison</em>'.
615         * <!-- begin-user-doc -->
616         * This implementation returns null;
617         * returning a non-null result will terminate the switch.
618         * <!-- end-user-doc -->
619         * @param object the target of the switch.
620         * @return the result of interpreting the object as an instance of '<em>Comparison</em>'.
621         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
622         * @generated
623         */
624        public T caseComparison(Comparison object) {
625                return null;
626        }
627 
628        /**
629         * Returns the result of interpreting the object as an instance of '<em>Boolean Expression</em>'.
630         * <!-- begin-user-doc -->
631         * This implementation returns null;
632         * returning a non-null result will terminate the switch.
633         * <!-- end-user-doc -->
634         * @param object the target of the switch.
635         * @return the result of interpreting the object as an instance of '<em>Boolean Expression</em>'.
636         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
637         * @generated
638         */
639        public T caseBooleanExpression(BooleanExpression object) {
640                return null;
641        }
642 
643        /**
644         * Returns the result of interpreting the object as an instance of '<em>If Else</em>'.
645         * <!-- begin-user-doc -->
646         * This implementation returns null;
647         * returning a non-null result will terminate the switch.
648         * <!-- end-user-doc -->
649         * @param object the target of the switch.
650         * @return the result of interpreting the object as an instance of '<em>If Else</em>'.
651         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
652         * @generated
653         */
654        public T caseIfElse(IfElse object) {
655                return null;
656        }
657 
658        /**
659         * Returns the result of interpreting the object as an instance of '<em>Expression</em>'.
660         * <!-- begin-user-doc -->
661         * This implementation returns null;
662         * returning a non-null result will terminate the switch.
663         * <!-- end-user-doc -->
664         * @param object the target of the switch.
665         * @return the result of interpreting the object as an instance of '<em>Expression</em>'.
666         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
667         * @generated
668         */
669        public T caseExpression(Expression object) {
670                return null;
671        }
672 
673        /**
674         * Returns the result of interpreting the object as an instance of '<em>Term Expression</em>'.
675         * <!-- begin-user-doc -->
676         * This implementation returns null;
677         * returning a non-null result will terminate the switch.
678         * <!-- end-user-doc -->
679         * @param object the target of the switch.
680         * @return the result of interpreting the object as an instance of '<em>Term Expression</em>'.
681         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
682         * @generated
683         */
684        public T caseTermExpression(TermExpression object) {
685                return null;
686        }
687 
688        /**
689         * Returns the result of interpreting the object as an instance of '<em>Random Variable</em>'.
690         * <!-- begin-user-doc -->
691         * This implementation returns null;
692         * returning a non-null result will terminate the switch.
693         * <!-- end-user-doc -->
694         * @param object the target of the switch.
695         * @return the result of interpreting the object as an instance of '<em>Random Variable</em>'.
696         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
697         * @generated
698         */
699        public T caseRandomVariable(RandomVariable object) {
700                return null;
701        }
702 
703        /**
704         * Returns the result of interpreting the object as an instance of '<em>Product Expression</em>'.
705         * <!-- begin-user-doc -->
706         * This implementation returns null;
707         * returning a non-null result will terminate the switch.
708         * <!-- end-user-doc -->
709         * @param object the target of the switch.
710         * @return the result of interpreting the object as an instance of '<em>Product Expression</em>'.
711         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
712         * @generated
713         */
714        public T caseProductExpression(ProductExpression object) {
715                return null;
716        }
717 
718        /**
719         * Returns the result of interpreting the object as an instance of '<em>Probability Function Literal</em>'.
720         * <!-- begin-user-doc -->
721         * This implementation returns null;
722         * returning a non-null result will terminate the switch.
723         * <!-- end-user-doc -->
724         * @param object the target of the switch.
725         * @return the result of interpreting the object as an instance of '<em>Probability Function Literal</em>'.
726         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
727         * @generated
728         */
729        public T caseProbabilityFunctionLiteral(ProbabilityFunctionLiteral object) {
730                return null;
731        }
732 
733        /**
734         * Returns the result of interpreting the object as an instance of '<em>Parenthesis</em>'.
735         * <!-- begin-user-doc -->
736         * This implementation returns null;
737         * returning a non-null result will terminate the switch.
738         * <!-- end-user-doc -->
739         * @param object the target of the switch.
740         * @return the result of interpreting the object as an instance of '<em>Parenthesis</em>'.
741         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
742         * @generated
743         */
744        public T caseParenthesis(Parenthesis object) {
745                return null;
746        }
747 
748        /**
749         * Returns the result of interpreting the object as an instance of '<em>Numeric Literal</em>'.
750         * <!-- begin-user-doc -->
751         * This implementation returns null;
752         * returning a non-null result will terminate the switch.
753         * <!-- end-user-doc -->
754         * @param object the target of the switch.
755         * @return the result of interpreting the object as an instance of '<em>Numeric Literal</em>'.
756         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
757         * @generated
758         */
759        public T caseNumericLiteral(NumericLiteral object) {
760                return null;
761        }
762 
763        /**
764         * Returns the result of interpreting the object as an instance of '<em>Int Literal</em>'.
765         * <!-- begin-user-doc -->
766         * This implementation returns null;
767         * returning a non-null result will terminate the switch.
768         * <!-- end-user-doc -->
769         * @param object the target of the switch.
770         * @return the result of interpreting the object as an instance of '<em>Int Literal</em>'.
771         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
772         * @generated
773         */
774        public T caseIntLiteral(IntLiteral object) {
775                return null;
776        }
777 
778        /**
779         * Returns the result of interpreting the object as an instance of '<em>Double Literal</em>'.
780         * <!-- begin-user-doc -->
781         * This implementation returns null;
782         * returning a non-null result will terminate the switch.
783         * <!-- end-user-doc -->
784         * @param object the target of the switch.
785         * @return the result of interpreting the object as an instance of '<em>Double Literal</em>'.
786         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
787         * @generated
788         */
789        public T caseDoubleLiteral(DoubleLiteral object) {
790                return null;
791        }
792 
793        /**
794         * Returns the result of interpreting the object as an instance of '<em>Compare Expression</em>'.
795         * <!-- begin-user-doc -->
796         * This implementation returns null;
797         * returning a non-null result will terminate the switch.
798         * <!-- end-user-doc -->
799         * @param object the target of the switch.
800         * @return the result of interpreting the object as an instance of '<em>Compare Expression</em>'.
801         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
802         * @generated
803         */
804        public T caseCompareExpression(CompareExpression object) {
805                return null;
806        }
807 
808        /**
809         * Returns the result of interpreting the object as an instance of '<em>Bool Literal</em>'.
810         * <!-- begin-user-doc -->
811         * This implementation returns null;
812         * returning a non-null result will terminate the switch.
813         * <!-- end-user-doc -->
814         * @param object the target of the switch.
815         * @return the result of interpreting the object as an instance of '<em>Bool Literal</em>'.
816         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
817         * @generated
818         */
819        public T caseBoolLiteral(BoolLiteral object) {
820                return null;
821        }
822 
823        /**
824         * Returns the result of interpreting the object as an instance of '<em>String Literal</em>'.
825         * <!-- begin-user-doc -->
826         * This implementation returns null;
827         * returning a non-null result will terminate the switch.
828         * <!-- end-user-doc -->
829         * @param object the target of the switch.
830         * @return the result of interpreting the object as an instance of '<em>String Literal</em>'.
831         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
832         * @generated
833         */
834        public T caseStringLiteral(StringLiteral object) {
835                return null;
836        }
837 
838        /**
839         * Returns the result of interpreting the object as an instance of '<em>Power Expression</em>'.
840         * <!-- begin-user-doc -->
841         * This implementation returns null;
842         * returning a non-null result will terminate the switch.
843         * <!-- end-user-doc -->
844         * @param object the target of the switch.
845         * @return the result of interpreting the object as an instance of '<em>Power Expression</em>'.
846         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
847         * @generated
848         */
849        public T casePowerExpression(PowerExpression object) {
850                return null;
851        }
852 
853        /**
854         * Returns the result of interpreting the object as an instance of '<em>Boolean Operator Expression</em>'.
855         * <!-- begin-user-doc -->
856         * This implementation returns null;
857         * returning a non-null result will terminate the switch.
858         * <!-- end-user-doc -->
859         * @param object the target of the switch.
860         * @return the result of interpreting the object as an instance of '<em>Boolean Operator Expression</em>'.
861         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
862         * @generated
863         */
864        public T caseBooleanOperatorExpression(BooleanOperatorExpression object) {
865                return null;
866        }
867 
868        /**
869         * Returns the result of interpreting the object as an instance of '<em>Not Expression</em>'.
870         * <!-- begin-user-doc -->
871         * This implementation returns null;
872         * returning a non-null result will terminate the switch.
873         * <!-- end-user-doc -->
874         * @param object the target of the switch.
875         * @return the result of interpreting the object as an instance of '<em>Not Expression</em>'.
876         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
877         * @generated
878         */
879        public T caseNotExpression(NotExpression object) {
880                return null;
881        }
882 
883        /**
884         * Returns the result of interpreting the object as an instance of '<em>Negative Expression</em>'.
885         * <!-- begin-user-doc -->
886         * This implementation returns null;
887         * returning a non-null result will terminate the switch.
888         * <!-- end-user-doc -->
889         * @param object the target of the switch.
890         * @return the result of interpreting the object as an instance of '<em>Negative Expression</em>'.
891         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
892         * @generated
893         */
894        public T caseNegativeExpression(NegativeExpression object) {
895                return null;
896        }
897 
898        /**
899         * Returns the result of interpreting the object as an instance of '<em>Function Literal</em>'.
900         * <!-- begin-user-doc -->
901         * This implementation returns null;
902         * returning a non-null result will terminate the switch.
903         * <!-- end-user-doc -->
904         * @param object the target of the switch.
905         * @return the result of interpreting the object as an instance of '<em>Function Literal</em>'.
906         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
907         * @generated
908         */
909        public T caseFunctionLiteral(FunctionLiteral object) {
910                return null;
911        }
912 
913        /**
914         * Returns the result of interpreting the object as an instance of '<em>If Else Expression</em>'.
915         * <!-- begin-user-doc -->
916         * This implementation returns null;
917         * returning a non-null result will terminate the switch.
918         * <!-- end-user-doc -->
919         * @param object the target of the switch.
920         * @return the result of interpreting the object as an instance of '<em>If Else Expression</em>'.
921         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
922         * @generated
923         */
924        public T caseIfElseExpression(IfElseExpression object) {
925                return null;
926        }
927 
928        /**
929         * Returns the result of interpreting the object as an instance of '<em>Unit Carrying Element</em>'.
930         * <!-- begin-user-doc -->
931         * This implementation returns null;
932         * returning a non-null result will terminate the switch.
933         * <!-- end-user-doc -->
934         * @param object the target of the switch.
935         * @return the result of interpreting the object as an instance of '<em>Unit Carrying Element</em>'.
936         * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
937         * @generated
938         */
939        public T caseUnitCarryingElement(UnitCarryingElement object) {
940                return null;
941        }
942 
943        /**
944         * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
945         * <!-- begin-user-doc -->
946         * This implementation returns null;
947         * returning a non-null result will terminate the switch, but this is the last case anyway.
948         * <!-- end-user-doc -->
949         * @param object the target of the switch.
950         * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
951         * @see #doSwitch(org.eclipse.emf.ecore.EObject)
952         * @generated
953         */
954        public T defaultCase(EObject object) {
955                return null;
956        }
957 
958} //StoexSwitch

[all classes][de.uka.ipd.sdq.stoex.util]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov