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