blob: 9956983d78280f271e5ee1b95bffdf81104deb6d (
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
|
/*******************************************************************************
* Copyright (c) 2004-2010 Gabor Bergmann and Daniel Varro
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-v20.html.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package tools.refinery.viatra.runtime.api.impl;
import tools.refinery.viatra.runtime.api.IPatternMatch;
import tools.refinery.viatra.runtime.api.ViatraQueryMatcher;
import tools.refinery.viatra.runtime.api.scope.QueryScope;
import tools.refinery.viatra.runtime.emf.EMFScope;
import tools.refinery.viatra.runtime.matchers.psystem.queries.PQuery;
/**
* Provides common functionality of pattern-specific generated query specifications over the EMF scope.
*
* @author Bergmann Gábor
* @author Mark Czotter
*/
public abstract class BaseGeneratedEMFQuerySpecification<Matcher extends ViatraQueryMatcher<? extends IPatternMatch>> extends
BaseQuerySpecification<Matcher> {
/**
* Instantiates query specification for the given internal query representation.
*/
public BaseGeneratedEMFQuerySpecification(PQuery wrappedPQuery) {
super(wrappedPQuery);
}
@Override
public Class<? extends QueryScope> getPreferredScopeClass() {
return EMFScope.class;
}
}
|