aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java')
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java589
1 files changed, 589 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java
new file mode 100644
index 00000000..ed3c903c
--- /dev/null
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/RemoveHostInstance.java
@@ -0,0 +1,589 @@
1/**
2 * Generated from platform:/resource/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.vql
3 */
4package hu.bme.mit.inf.dslreasoner.domains.cps.queries;
5
6import hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance;
7import java.util.Arrays;
8import java.util.Collection;
9import java.util.Collections;
10import java.util.LinkedHashSet;
11import java.util.List;
12import java.util.Objects;
13import java.util.Optional;
14import java.util.Set;
15import java.util.function.Consumer;
16import java.util.stream.Collectors;
17import java.util.stream.Stream;
18import org.apache.log4j.Logger;
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.viatra.query.runtime.api.IPatternMatch;
21import org.eclipse.viatra.query.runtime.api.IQuerySpecification;
22import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine;
23import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery;
24import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification;
25import org.eclipse.viatra.query.runtime.api.impl.BaseMatcher;
26import org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch;
27import org.eclipse.viatra.query.runtime.emf.types.EClassTransitiveInstancesKey;
28import org.eclipse.viatra.query.runtime.emf.types.EStructuralFeatureInstancesKey;
29import org.eclipse.viatra.query.runtime.matchers.backend.QueryEvaluationHint;
30import org.eclipse.viatra.query.runtime.matchers.psystem.PBody;
31import org.eclipse.viatra.query.runtime.matchers.psystem.PVariable;
32import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.Equality;
33import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter;
34import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.NegativePatternCall;
35import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint;
36import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter;
37import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection;
38import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility;
39import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple;
40import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples;
41import org.eclipse.viatra.query.runtime.util.ViatraQueryLoggingUtil;
42
43/**
44 * A pattern-specific query specification that can instantiate Matcher in a type-safe way.
45 *
46 * <p>Original source:
47 * <code><pre>
48 * pattern removeHostInstance(HostInstance : HostInstance) {
49 * neg HostInstance.applications(HostInstance, _);
50 * }
51 * </pre></code>
52 *
53 * @see Matcher
54 * @see Match
55 *
56 */
57@SuppressWarnings("all")
58public final class RemoveHostInstance extends BaseGeneratedEMFQuerySpecification<RemoveHostInstance.Matcher> {
59 /**
60 * Pattern-specific match representation of the hu.bme.mit.inf.dslreasoner.domains.cps.queries.removeHostInstance pattern,
61 * to be used in conjunction with {@link Matcher}.
62 *
63 * <p>Class fields correspond to parameters of the pattern. Fields with value null are considered unassigned.
64 * Each instance is a (possibly partial) substitution of pattern parameters,
65 * usable to represent a match of the pattern in the result of a query,
66 * or to specify the bound (fixed) input parameters when issuing a query.
67 *
68 * @see Matcher
69 *
70 */
71 public static abstract class Match extends BasePatternMatch {
72 private HostInstance fHostInstance;
73
74 private static List<String> parameterNames = makeImmutableList("HostInstance");
75
76 private Match(final HostInstance pHostInstance) {
77 this.fHostInstance = pHostInstance;
78 }
79
80 @Override
81 public Object get(final String parameterName) {
82 switch(parameterName) {
83 case "HostInstance": return this.fHostInstance;
84 default: return null;
85 }
86 }
87
88 @Override
89 public Object get(final int index) {
90 switch(index) {
91 case 0: return this.fHostInstance;
92 default: return null;
93 }
94 }
95
96 public HostInstance getHostInstance() {
97 return this.fHostInstance;
98 }
99
100 @Override
101 public boolean set(final String parameterName, final Object newValue) {
102 if (!isMutable()) throw new java.lang.UnsupportedOperationException();
103 if ("HostInstance".equals(parameterName) ) {
104 this.fHostInstance = (HostInstance) newValue;
105 return true;
106 }
107 return false;
108 }
109
110 public void setHostInstance(final HostInstance pHostInstance) {
111 if (!isMutable()) throw new java.lang.UnsupportedOperationException();
112 this.fHostInstance = pHostInstance;
113 }
114
115 @Override
116 public String patternName() {
117 return "hu.bme.mit.inf.dslreasoner.domains.cps.queries.removeHostInstance";
118 }
119
120 @Override
121 public List<String> parameterNames() {
122 return RemoveHostInstance.Match.parameterNames;
123 }
124
125 @Override
126 public Object[] toArray() {
127 return new Object[]{fHostInstance};
128 }
129
130 @Override
131 public RemoveHostInstance.Match toImmutable() {
132 return isMutable() ? newMatch(fHostInstance) : this;
133 }
134
135 @Override
136 public String prettyPrint() {
137 StringBuilder result = new StringBuilder();
138 result.append("\"HostInstance\"=" + prettyPrintValue(fHostInstance));
139 return result.toString();
140 }
141
142 @Override
143 public int hashCode() {
144 return Objects.hash(fHostInstance);
145 }
146
147 @Override
148 public boolean equals(final Object obj) {
149 if (this == obj)
150 return true;
151 if (obj == null) {
152 return false;
153 }
154 if ((obj instanceof RemoveHostInstance.Match)) {
155 RemoveHostInstance.Match other = (RemoveHostInstance.Match) obj;
156 return Objects.equals(fHostInstance, other.fHostInstance);
157 } else {
158 // this should be infrequent
159 if (!(obj instanceof IPatternMatch)) {
160 return false;
161 }
162 IPatternMatch otherSig = (IPatternMatch) obj;
163 return Objects.equals(specification(), otherSig.specification()) && Arrays.deepEquals(toArray(), otherSig.toArray());
164 }
165 }
166
167 @Override
168 public RemoveHostInstance specification() {
169 return RemoveHostInstance.instance();
170 }
171
172 /**
173 * Returns an empty, mutable match.
174 * Fields of the mutable match can be filled to create a partial match, usable as matcher input.
175 *
176 * @return the empty match.
177 *
178 */
179 public static RemoveHostInstance.Match newEmptyMatch() {
180 return new Mutable(null);
181 }
182
183 /**
184 * Returns a mutable (partial) match.
185 * Fields of the mutable match can be filled to create a partial match, usable as matcher input.
186 *
187 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
188 * @return the new, mutable (partial) match object.
189 *
190 */
191 public static RemoveHostInstance.Match newMutableMatch(final HostInstance pHostInstance) {
192 return new Mutable(pHostInstance);
193 }
194
195 /**
196 * Returns a new (partial) match.
197 * This can be used e.g. to call the matcher with a partial match.
198 * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object.
199 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
200 * @return the (partial) match object.
201 *
202 */
203 public static RemoveHostInstance.Match newMatch(final HostInstance pHostInstance) {
204 return new Immutable(pHostInstance);
205 }
206
207 private static final class Mutable extends RemoveHostInstance.Match {
208 Mutable(final HostInstance pHostInstance) {
209 super(pHostInstance);
210 }
211
212 @Override
213 public boolean isMutable() {
214 return true;
215 }
216 }
217
218 private static final class Immutable extends RemoveHostInstance.Match {
219 Immutable(final HostInstance pHostInstance) {
220 super(pHostInstance);
221 }
222
223 @Override
224 public boolean isMutable() {
225 return false;
226 }
227 }
228 }
229
230 /**
231 * Generated pattern matcher API of the hu.bme.mit.inf.dslreasoner.domains.cps.queries.removeHostInstance pattern,
232 * providing pattern-specific query methods.
233 *
234 * <p>Use the pattern matcher on a given model via {@link #on(ViatraQueryEngine)},
235 * e.g. in conjunction with {@link ViatraQueryEngine#on(QueryScope)}.
236 *
237 * <p>Matches of the pattern will be represented as {@link Match}.
238 *
239 * <p>Original source:
240 * <code><pre>
241 * pattern removeHostInstance(HostInstance : HostInstance) {
242 * neg HostInstance.applications(HostInstance, _);
243 * }
244 * </pre></code>
245 *
246 * @see Match
247 * @see RemoveHostInstance
248 *
249 */
250 public static class Matcher extends BaseMatcher<RemoveHostInstance.Match> {
251 /**
252 * Initializes the pattern matcher within an existing VIATRA Query engine.
253 * If the pattern matcher is already constructed in the engine, only a light-weight reference is returned.
254 *
255 * @param engine the existing VIATRA Query engine in which this matcher will be created.
256 * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation
257 *
258 */
259 public static RemoveHostInstance.Matcher on(final ViatraQueryEngine engine) {
260 // check if matcher already exists
261 Matcher matcher = engine.getExistingMatcher(querySpecification());
262 if (matcher == null) {
263 matcher = (Matcher)engine.getMatcher(querySpecification());
264 }
265 return matcher;
266 }
267
268 /**
269 * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation
270 * @return an initialized matcher
271 * @noreference This method is for internal matcher initialization by the framework, do not call it manually.
272 *
273 */
274 public static RemoveHostInstance.Matcher create() {
275 return new Matcher();
276 }
277
278 private static final int POSITION_HOSTINSTANCE = 0;
279
280 private static final Logger LOGGER = ViatraQueryLoggingUtil.getLogger(RemoveHostInstance.Matcher.class);
281
282 /**
283 * Initializes the pattern matcher within an existing VIATRA Query engine.
284 * If the pattern matcher is already constructed in the engine, only a light-weight reference is returned.
285 *
286 * @param engine the existing VIATRA Query engine in which this matcher will be created.
287 * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation
288 *
289 */
290 private Matcher() {
291 super(querySpecification());
292 }
293
294 /**
295 * Returns the set of all matches of the pattern that conform to the given fixed values of some parameters.
296 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
297 * @return matches represented as a Match object.
298 *
299 */
300 public Collection<RemoveHostInstance.Match> getAllMatches(final HostInstance pHostInstance) {
301 return rawStreamAllMatches(new Object[]{pHostInstance}).collect(Collectors.toSet());
302 }
303
304 /**
305 * Returns a stream of all matches of the pattern that conform to the given fixed values of some parameters.
306 * </p>
307 * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed.
308 * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>.
309 * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code.
310 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
311 * @return a stream of matches represented as a Match object.
312 *
313 */
314 public Stream<RemoveHostInstance.Match> streamAllMatches(final HostInstance pHostInstance) {
315 return rawStreamAllMatches(new Object[]{pHostInstance});
316 }
317
318 /**
319 * Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
320 * Neither determinism nor randomness of selection is guaranteed.
321 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
322 * @return a match represented as a Match object, or null if no match is found.
323 *
324 */
325 public Optional<RemoveHostInstance.Match> getOneArbitraryMatch(final HostInstance pHostInstance) {
326 return rawGetOneArbitraryMatch(new Object[]{pHostInstance});
327 }
328
329 /**
330 * Indicates whether the given combination of specified pattern parameters constitute a valid pattern match,
331 * under any possible substitution of the unspecified parameters (if any).
332 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
333 * @return true if the input is a valid (partial) match of the pattern.
334 *
335 */
336 public boolean hasMatch(final HostInstance pHostInstance) {
337 return rawHasMatch(new Object[]{pHostInstance});
338 }
339
340 /**
341 * Returns the number of all matches of the pattern that conform to the given fixed values of some parameters.
342 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
343 * @return the number of pattern matches found.
344 *
345 */
346 public int countMatches(final HostInstance pHostInstance) {
347 return rawCountMatches(new Object[]{pHostInstance});
348 }
349
350 /**
351 * Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
352 * Neither determinism nor randomness of selection is guaranteed.
353 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
354 * @param processor the action that will process the selected match.
355 * @return true if the pattern has at least one match with the given parameter values, false if the processor was not invoked
356 *
357 */
358 public boolean forOneArbitraryMatch(final HostInstance pHostInstance, final Consumer<? super RemoveHostInstance.Match> processor) {
359 return rawForOneArbitraryMatch(new Object[]{pHostInstance}, processor);
360 }
361
362 /**
363 * Returns a new (partial) match.
364 * This can be used e.g. to call the matcher with a partial match.
365 * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object.
366 * @param pHostInstance the fixed value of pattern parameter HostInstance, or null if not bound.
367 * @return the (partial) match object.
368 *
369 */
370 public RemoveHostInstance.Match newMatch(final HostInstance pHostInstance) {
371 return RemoveHostInstance.Match.newMatch(pHostInstance);
372 }
373
374 /**
375 * Retrieve the set of values that occur in matches for HostInstance.
376 * @return the Set of all values or empty set if there are no matches
377 *
378 */
379 protected Stream<HostInstance> rawStreamAllValuesOfHostInstance(final Object[] parameters) {
380 return rawStreamAllValues(POSITION_HOSTINSTANCE, parameters).map(HostInstance.class::cast);
381 }
382
383 /**
384 * Retrieve the set of values that occur in matches for HostInstance.
385 * @return the Set of all values or empty set if there are no matches
386 *
387 */
388 public Set<HostInstance> getAllValuesOfHostInstance() {
389 return rawStreamAllValuesOfHostInstance(emptyArray()).collect(Collectors.toSet());
390 }
391
392 /**
393 * Retrieve the set of values that occur in matches for HostInstance.
394 * @return the Set of all values or empty set if there are no matches
395 *
396 */
397 public Stream<HostInstance> streamAllValuesOfHostInstance() {
398 return rawStreamAllValuesOfHostInstance(emptyArray());
399 }
400
401 @Override
402 protected RemoveHostInstance.Match tupleToMatch(final Tuple t) {
403 try {
404 return RemoveHostInstance.Match.newMatch((HostInstance) t.get(POSITION_HOSTINSTANCE));
405 } catch(ClassCastException e) {
406 LOGGER.error("Element(s) in tuple not properly typed!",e);
407 return null;
408 }
409 }
410
411 @Override
412 protected RemoveHostInstance.Match arrayToMatch(final Object[] match) {
413 try {
414 return RemoveHostInstance.Match.newMatch((HostInstance) match[POSITION_HOSTINSTANCE]);
415 } catch(ClassCastException e) {
416 LOGGER.error("Element(s) in array not properly typed!",e);
417 return null;
418 }
419 }
420
421 @Override
422 protected RemoveHostInstance.Match arrayToMatchMutable(final Object[] match) {
423 try {
424 return RemoveHostInstance.Match.newMutableMatch((HostInstance) match[POSITION_HOSTINSTANCE]);
425 } catch(ClassCastException e) {
426 LOGGER.error("Element(s) in array not properly typed!",e);
427 return null;
428 }
429 }
430
431 /**
432 * @return the singleton instance of the query specification of this pattern
433 * @throws ViatraQueryRuntimeException if the pattern definition could not be loaded
434 *
435 */
436 public static IQuerySpecification<RemoveHostInstance.Matcher> querySpecification() {
437 return RemoveHostInstance.instance();
438 }
439 }
440
441 private RemoveHostInstance() {
442 super(GeneratedPQuery.INSTANCE);
443 }
444
445 /**
446 * @return the singleton instance of the query specification
447 * @throws ViatraQueryRuntimeException if the pattern definition could not be loaded
448 *
449 */
450 public static RemoveHostInstance instance() {
451 try{
452 return LazyHolder.INSTANCE;
453 } catch (ExceptionInInitializerError err) {
454 throw processInitializerError(err);
455 }
456 }
457
458 @Override
459 protected RemoveHostInstance.Matcher instantiate(final ViatraQueryEngine engine) {
460 return RemoveHostInstance.Matcher.on(engine);
461 }
462
463 @Override
464 public RemoveHostInstance.Matcher instantiate() {
465 return RemoveHostInstance.Matcher.create();
466 }
467
468 @Override
469 public RemoveHostInstance.Match newEmptyMatch() {
470 return RemoveHostInstance.Match.newEmptyMatch();
471 }
472
473 @Override
474 public RemoveHostInstance.Match newMatch(final Object... parameters) {
475 return RemoveHostInstance.Match.newMatch((hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance) parameters[0]);
476 }
477
478 /**
479 * Inner class allowing the singleton instance of {@link RemoveHostInstance} to be created
480 * <b>not</b> at the class load time of the outer class,
481 * but rather at the first call to {@link RemoveHostInstance#instance()}.
482 *
483 * <p> This workaround is required e.g. to support recursion.
484 *
485 */
486 private static class LazyHolder {
487 private static final RemoveHostInstance INSTANCE = new RemoveHostInstance();
488
489 /**
490 * Statically initializes the query specification <b>after</b> the field {@link #INSTANCE} is assigned.
491 * This initialization order is required to support indirect recursion.
492 *
493 * <p> The static initializer is defined using a helper field to work around limitations of the code generator.
494 *
495 */
496 private static final Object STATIC_INITIALIZER = ensureInitialized();
497
498 public static Object ensureInitialized() {
499 INSTANCE.ensureInitializedInternal();
500 return null;
501 }
502 }
503
504 private static class GeneratedPQuery extends BaseGeneratedEMFPQuery {
505 private static final RemoveHostInstance.GeneratedPQuery INSTANCE = new GeneratedPQuery();
506
507 private final PParameter parameter_HostInstance = new PParameter("HostInstance", "hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("http://www.example.org/cps", "HostInstance")), PParameterDirection.INOUT);
508
509 private final List<PParameter> parameters = Arrays.asList(parameter_HostInstance);
510
511 private class Embedded_1_HostInstance_applications extends BaseGeneratedEMFPQuery {
512 private final PParameter parameter_p0 = new PParameter("p0", "hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("http://www.example.org/cps", "HostInstance")), PParameterDirection.INOUT);
513
514 private final PParameter parameter_p1 = new PParameter("p1", "hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationInstance", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("http://www.example.org/cps", "ApplicationInstance")), PParameterDirection.INOUT);
515
516 private final List<PParameter> embeddedParameters = Arrays.asList(parameter_p0, parameter_p1);
517
518 public Embedded_1_HostInstance_applications() {
519 super(PVisibility.EMBEDDED);
520 }
521
522 @Override
523 public String getFullyQualifiedName() {
524 return GeneratedPQuery.this.getFullyQualifiedName() + "$Embedded_1_HostInstance_applications";
525 }
526
527 @Override
528 public List<PParameter> getParameters() {
529 return embeddedParameters;
530 }
531
532 @Override
533 public Set<PBody> doGetContainedBodies() {
534 PBody body = new PBody(this);
535 PVariable var_p0 = body.getOrCreateVariableByName("p0");
536 PVariable var_p1 = body.getOrCreateVariableByName("p1");
537 body.setSymbolicParameters(Arrays.<ExportedParameter>asList(
538 new ExportedParameter(body, var_p0, parameter_p0),
539 new ExportedParameter(body, var_p1, parameter_p1)
540 ));
541 // HostInstance.applications(HostInstance, _)
542 new TypeConstraint(body, Tuples.flatTupleOf(var_p0), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("http://www.example.org/cps", "HostInstance")));
543 PVariable var__virtual_0_ = body.getOrCreateVariableByName(".virtual{0}");
544 new TypeConstraint(body, Tuples.flatTupleOf(var_p0, var__virtual_0_), new EStructuralFeatureInstancesKey(getFeatureLiteral("http://www.example.org/cps", "HostInstance", "applications")));
545 new TypeConstraint(body, Tuples.flatTupleOf(var__virtual_0_), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("http://www.example.org/cps", "ApplicationInstance")));
546 new Equality(body, var__virtual_0_, var_p1);
547 return Collections.singleton(body);
548 }
549 }
550
551 private GeneratedPQuery() {
552 super(PVisibility.PUBLIC);
553 }
554
555 @Override
556 public String getFullyQualifiedName() {
557 return "hu.bme.mit.inf.dslreasoner.domains.cps.queries.removeHostInstance";
558 }
559
560 @Override
561 public List<String> getParameterNames() {
562 return Arrays.asList("HostInstance");
563 }
564
565 @Override
566 public List<PParameter> getParameters() {
567 return parameters;
568 }
569
570 @Override
571 public Set<PBody> doGetContainedBodies() {
572 setEvaluationHints(new QueryEvaluationHint(null, QueryEvaluationHint.BackendRequirement.UNSPECIFIED));
573 Set<PBody> bodies = new LinkedHashSet<>();
574 {
575 PBody body = new PBody(this);
576 PVariable var_HostInstance = body.getOrCreateVariableByName("HostInstance");
577 PVariable var___0_ = body.getOrCreateVariableByName("_<0>");
578 new TypeConstraint(body, Tuples.flatTupleOf(var_HostInstance), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("http://www.example.org/cps", "HostInstance")));
579 body.setSymbolicParameters(Arrays.<ExportedParameter>asList(
580 new ExportedParameter(body, var_HostInstance, parameter_HostInstance)
581 ));
582 // neg HostInstance.applications(HostInstance, _)
583 new NegativePatternCall(body, Tuples.flatTupleOf(var_HostInstance, var___0_), new RemoveHostInstance.GeneratedPQuery.Embedded_1_HostInstance_applications());
584 bodies.add(body);
585 }
586 return bodies;
587 }
588 }
589}