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 [ExpressionFactoryImpl.java]

nameclass, %method, %block, %line, %
ExpressionFactoryImpl.java0%   (0/1)0%   (0/13)0%   (0/115)0%   (0/36)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExpressionFactoryImpl0%   (0/1)0%   (0/13)0%   (0/115)0%   (0/36)
ExpressionFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
create (EClass): EObject 0%   (0/1)0%   (0/41)0%   (0/10)
createAcquire (): Acquire 0%   (0/1)0%   (0/6)0%   (0/2)
createAlternative (): Alternative 0%   (0/1)0%   (0/6)0%   (0/2)
createLoop (): Loop 0%   (0/1)0%   (0/6)0%   (0/2)
createOption (): Option 0%   (0/1)0%   (0/6)0%   (0/2)
createParallel (): Parallel 0%   (0/1)0%   (0/6)0%   (0/2)
createRelease (): Release 0%   (0/1)0%   (0/6)0%   (0/2)
createSequence (): Sequence 0%   (0/1)0%   (0/6)0%   (0/2)
createSymbol (): Symbol 0%   (0/1)0%   (0/6)0%   (0/2)
getExpressionPackage (): ExpressionPackage 0%   (0/1)0%   (0/4)0%   (0/1)
getPackage (): ExpressionPackage 0%   (0/1)0%   (0/2)0%   (0/1)
init (): ExpressionFactory 0%   (0/1)0%   (0/17)0%   (0/6)

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.*;
10 
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.EObject;
13import org.eclipse.emf.ecore.EPackage;
14 
15import org.eclipse.emf.ecore.impl.EFactoryImpl;
16 
17import org.eclipse.emf.ecore.plugin.EcorePlugin;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model <b>Factory</b>.
22 * <!-- end-user-doc -->
23 * @generated
24 */
25public class ExpressionFactoryImpl extends EFactoryImpl implements ExpressionFactory {
26        /**
27         * Creates the default factory implementation.
28         * <!-- begin-user-doc -->
29         * <!-- end-user-doc -->
30         * @generated
31         */
32        public static ExpressionFactory init() {
33                try {
34                        ExpressionFactory theExpressionFactory = (ExpressionFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/Analytical/Expression/1.0"); 
35                        if (theExpressionFactory != null) {
36                                return theExpressionFactory;
37                        }
38                }
39                catch (Exception exception) {
40                        EcorePlugin.INSTANCE.log(exception);
41                }
42                return new ExpressionFactoryImpl();
43        }
44 
45        /**
46         * Creates an instance of the factory.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        public ExpressionFactoryImpl() {
52                super();
53        }
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        @Override
61        public EObject create(EClass eClass) {
62                switch (eClass.getClassifierID()) {
63                        case ExpressionPackage.SYMBOL: return createSymbol();
64                        case ExpressionPackage.SEQUENCE: return createSequence();
65                        case ExpressionPackage.RELEASE: return createRelease();
66                        case ExpressionPackage.PARALLEL: return createParallel();
67                        case ExpressionPackage.OPTION: return createOption();
68                        case ExpressionPackage.LOOP: return createLoop();
69                        case ExpressionPackage.ALTERNATIVE: return createAlternative();
70                        case ExpressionPackage.ACQUIRE: return createAcquire();
71                        default:
72                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
73                }
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public Symbol createSymbol() {
82                SymbolImpl symbol = new SymbolImpl();
83                return symbol;
84        }
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        public Sequence createSequence() {
92                SequenceImpl sequence = new SequenceImpl();
93                return sequence;
94        }
95 
96        /**
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @generated
100         */
101        public Release createRelease() {
102                ReleaseImpl release = new ReleaseImpl();
103                return release;
104        }
105 
106        /**
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @generated
110         */
111        public Parallel createParallel() {
112                ParallelImpl parallel = new ParallelImpl();
113                return parallel;
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        public Option createOption() {
122                OptionImpl option = new OptionImpl();
123                return option;
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        public Loop createLoop() {
132                LoopImpl loop = new LoopImpl();
133                return loop;
134        }
135 
136        /**
137         * <!-- begin-user-doc -->
138         * <!-- end-user-doc -->
139         * @generated
140         */
141        public Alternative createAlternative() {
142                AlternativeImpl alternative = new AlternativeImpl();
143                return alternative;
144        }
145 
146        /**
147         * <!-- begin-user-doc -->
148         * <!-- end-user-doc -->
149         * @generated
150         */
151        public Acquire createAcquire() {
152                AcquireImpl acquire = new AcquireImpl();
153                return acquire;
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        public ExpressionPackage getExpressionPackage() {
162                return (ExpressionPackage)getEPackage();
163        }
164 
165        /**
166         * <!-- begin-user-doc -->
167         * <!-- end-user-doc -->
168         * @deprecated
169         * @generated
170         */
171        @Deprecated
172        public static ExpressionPackage getPackage() {
173                return ExpressionPackage.eINSTANCE;
174        }
175 
176} //ExpressionFactoryImpl

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