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