Skip to content

Package: TrueImpl

TrueImpl

nameinstructionbranchcomplexitylinemethod
TrueImpl()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
eStaticClass()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evaluate(EObject)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evaluateChangedValues(EObject, Map)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (c) 2017 Christian W. Damus and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Christian W. Damus - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.spi.rule.model.impl;
15:
16: import java.util.Map;
17:
18: import org.eclipse.emf.ecore.EClass;
19: import org.eclipse.emf.ecore.EObject;
20: import org.eclipse.emf.ecore.EStructuralFeature.Setting;
21: import org.eclipse.emf.ecp.view.spi.rule.model.RulePackage;
22: import org.eclipse.emf.ecp.view.spi.rule.model.True;
23:
24: /**
25: * <!-- begin-user-doc -->
26: * An implementation of the model object '<em><b>True</b></em>'.
27: * <!-- end-user-doc -->
28: *
29: * @generated
30: */
31: public class TrueImpl extends ConditionImpl implements True {
32:         /**
33:          * <!-- begin-user-doc -->
34:          * <!-- end-user-doc -->
35:          *
36:          * @generated
37:          */
38:         protected TrueImpl() {
39:                 super();
40:         }
41:
42:         /**
43:          * <!-- begin-user-doc -->
44:          * <!-- end-user-doc -->
45:          *
46:          * @generated
47:          */
48:         @Override
49:         protected EClass eStaticClass() {
50:                 return RulePackage.Literals.TRUE;
51:         }
52:
53:         @Override
54:         public boolean evaluate(EObject domainModel) {
55:                 return true;
56:         }
57:
58:         @Override
59:         public boolean evaluateChangedValues(EObject domainModel, Map<Setting, Object> possibleNewValues) {
60:                 return true;
61:         }
62:
63: } // TrueImpl