diff options
author | 2017-06-10 20:39:40 +0200 | |
---|---|---|
committer | 2017-06-10 20:39:40 +0200 | |
commit | 10d272818443979dbb15972b397e8ac1bbbd5cd2 (patch) | |
tree | 0e6bafd1a1dabad2affefdaed295f780fcc6f65b /Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java | |
parent | Migrating Additional projects (diff) | |
download | VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.tar.gz VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.tar.zst VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.zip |
Added generated Xtext artefacts
Diffstat (limited to 'Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java')
-rw-r--r-- | Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java new file mode 100644 index 00000000..f3e38aa4 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java | |||
@@ -0,0 +1,165 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDistinct; | ||
6 | import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; | ||
7 | import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.common.util.EList; | ||
14 | |||
15 | import org.eclipse.emf.ecore.EClass; | ||
16 | import org.eclipse.emf.ecore.InternalEObject; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>SMT Distinct</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * <ul> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTDistinctImpl#getOperands <em>Operands</em>}</li> | ||
29 | * </ul> | ||
30 | * </p> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class SMTDistinctImpl extends SMTRelationImpl implements SMTDistinct | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getOperands() <em>Operands</em>}' containment reference list. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getOperands() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EList<SMTTerm> operands; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | protected SMTDistinctImpl() | ||
52 | { | ||
53 | super(); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | @Override | ||
62 | protected EClass eStaticClass() | ||
63 | { | ||
64 | return SmtLanguagePackage.Literals.SMT_DISTINCT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public EList<SMTTerm> getOperands() | ||
73 | { | ||
74 | if (operands == null) | ||
75 | { | ||
76 | operands = new EObjectContainmentEList<SMTTerm>(SMTTerm.class, this, SmtLanguagePackage.SMT_DISTINCT__OPERANDS); | ||
77 | } | ||
78 | return operands; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
88 | { | ||
89 | switch (featureID) | ||
90 | { | ||
91 | case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: | ||
92 | return ((InternalEList<?>)getOperands()).basicRemove(otherEnd, msgs); | ||
93 | } | ||
94 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: | ||
108 | return getOperands(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @SuppressWarnings("unchecked") | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: | ||
125 | getOperands().clear(); | ||
126 | getOperands().addAll((Collection<? extends SMTTerm>)newValue); | ||
127 | return; | ||
128 | } | ||
129 | super.eSet(featureID, newValue); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public void eUnset(int featureID) | ||
139 | { | ||
140 | switch (featureID) | ||
141 | { | ||
142 | case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: | ||
143 | getOperands().clear(); | ||
144 | return; | ||
145 | } | ||
146 | super.eUnset(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public boolean eIsSet(int featureID) | ||
156 | { | ||
157 | switch (featureID) | ||
158 | { | ||
159 | case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: | ||
160 | return operands != null && !operands.isEmpty(); | ||
161 | } | ||
162 | return super.eIsSet(featureID); | ||
163 | } | ||
164 | |||
165 | } //SMTDistinctImpl | ||