diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/SocialNetwork_plugin/src-gen/queries/Ecore.java')
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/src-gen/queries/Ecore.java | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/src-gen/queries/Ecore.java b/Metrics/Metrics-Calculation/SocialNetwork_plugin/src-gen/queries/Ecore.java new file mode 100644 index 00000000..e4f254d3 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/src-gen/queries/Ecore.java | |||
@@ -0,0 +1,97 @@ | |||
1 | /** | ||
2 | * Generated from platform:/resource/SocialNetwork_plugin/queries/queries/Ecore.vql | ||
3 | */ | ||
4 | package queries; | ||
5 | |||
6 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | ||
7 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup; | ||
8 | import queries.DirectSupertype; | ||
9 | import queries.LoopInInheritence; | ||
10 | import queries.NonSymmetricOpposite; | ||
11 | import queries.Opposite; | ||
12 | import queries.OppositeDifferentClass; | ||
13 | |||
14 | /** | ||
15 | * A pattern group formed of all public patterns defined in Ecore.vql. | ||
16 | * | ||
17 | * <p>Use the static instance as any {@link interface org.eclipse.viatra.query.runtime.api.IQueryGroup}, to conveniently prepare | ||
18 | * a VIATRA Query engine for matching all patterns originally defined in file Ecore.vql, | ||
19 | * in order to achieve better performance than one-by-one on-demand matcher initialization. | ||
20 | * | ||
21 | * <p> From package queries, the group contains the definition of the following patterns: <ul> | ||
22 | * <li>directSupertype</li> | ||
23 | * <li>loopInInheritence</li> | ||
24 | * <li>opposite</li> | ||
25 | * <li>oppositeDifferentClass</li> | ||
26 | * <li>nonSymmetricOpposite</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @see IQueryGroup | ||
30 | * | ||
31 | */ | ||
32 | @SuppressWarnings("all") | ||
33 | public final class Ecore extends BaseGeneratedPatternGroup { | ||
34 | /** | ||
35 | * Access the pattern group. | ||
36 | * | ||
37 | * @return the singleton instance of the group | ||
38 | * @throws ViatraQueryRuntimeException if there was an error loading the generated code of pattern specifications | ||
39 | * | ||
40 | */ | ||
41 | public static Ecore instance() { | ||
42 | if (INSTANCE == null) { | ||
43 | INSTANCE = new Ecore(); | ||
44 | } | ||
45 | return INSTANCE; | ||
46 | } | ||
47 | |||
48 | private static Ecore INSTANCE; | ||
49 | |||
50 | private Ecore() { | ||
51 | querySpecifications.add(DirectSupertype.instance()); | ||
52 | querySpecifications.add(LoopInInheritence.instance()); | ||
53 | querySpecifications.add(Opposite.instance()); | ||
54 | querySpecifications.add(OppositeDifferentClass.instance()); | ||
55 | querySpecifications.add(NonSymmetricOpposite.instance()); | ||
56 | } | ||
57 | |||
58 | public DirectSupertype getDirectSupertype() { | ||
59 | return DirectSupertype.instance(); | ||
60 | } | ||
61 | |||
62 | public DirectSupertype.Matcher getDirectSupertype(final ViatraQueryEngine engine) { | ||
63 | return DirectSupertype.Matcher.on(engine); | ||
64 | } | ||
65 | |||
66 | public LoopInInheritence getLoopInInheritence() { | ||
67 | return LoopInInheritence.instance(); | ||
68 | } | ||
69 | |||
70 | public LoopInInheritence.Matcher getLoopInInheritence(final ViatraQueryEngine engine) { | ||
71 | return LoopInInheritence.Matcher.on(engine); | ||
72 | } | ||
73 | |||
74 | public Opposite getOpposite() { | ||
75 | return Opposite.instance(); | ||
76 | } | ||
77 | |||
78 | public Opposite.Matcher getOpposite(final ViatraQueryEngine engine) { | ||
79 | return Opposite.Matcher.on(engine); | ||
80 | } | ||
81 | |||
82 | public OppositeDifferentClass getOppositeDifferentClass() { | ||
83 | return OppositeDifferentClass.instance(); | ||
84 | } | ||
85 | |||
86 | public OppositeDifferentClass.Matcher getOppositeDifferentClass(final ViatraQueryEngine engine) { | ||
87 | return OppositeDifferentClass.Matcher.on(engine); | ||
88 | } | ||
89 | |||
90 | public NonSymmetricOpposite getNonSymmetricOpposite() { | ||
91 | return NonSymmetricOpposite.instance(); | ||
92 | } | ||
93 | |||
94 | public NonSymmetricOpposite.Matcher getNonSymmetricOpposite(final ViatraQueryEngine engine) { | ||
95 | return NonSymmetricOpposite.Matcher.on(engine); | ||
96 | } | ||
97 | } | ||