public class GenericQuerySpecification extends GenericQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
SpecificationBuilder
instance), and then use the specification
to obtain an actual pattern matcher operating on a given model.
When available, consider using the pattern-specific generated matcher API instead.
The created matcher will be of type org.eclipse.viatra.query.runtime.api.GenericPatternMatcher. Matches of the pattern will be represented as GenericPatternMatch.
GenericPatternMatcher
,
GenericPatternMatch
,
GenericMatchProcessor
Modifier and Type | Field and Description |
---|---|
protected GenericEMFPatternPQuery |
genericEMFPatternPQuery |
wrappedPQuery
Constructor and Description |
---|
GenericQuerySpecification(GenericEMFPatternPQuery genericEMFPatternPQuery) |
Modifier and Type | Method and Description |
---|---|
GenericEMFPatternPQuery |
getInternalQueryRepresentation()
Returns the definition of the query in a format intended for consumption by the query evaluator.
|
java.lang.Class<? extends QueryScope> |
getPreferredScopeClass()
The query is formulated over this kind of modeling platform.
|
org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher |
instantiate()
For backward compatibility of code generated with previous versions of viatra query, this method has a default
implementation returning null, indicating that a matcher can only be created using the old method, which ignores
the hints provided by the user.
|
org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher |
instantiate(ViatraQueryEngine engine) |
defaultInstantiate, getVisibility, newEmptyMatch, newMatch
ensureInitializedInternal, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getMatcher, getParameterNames, getParameters, getPositionOfParameter, processInitializerError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameter, getSimpleName
protected GenericEMFPatternPQuery genericEMFPatternPQuery
public GenericQuerySpecification(GenericEMFPatternPQuery genericEMFPatternPQuery)
public GenericEMFPatternPQuery getInternalQueryRepresentation()
IQuerySpecification
getInternalQueryRepresentation
in interface IQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
getInternalQueryRepresentation
in class BaseQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
public org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher instantiate(ViatraQueryEngine engine)
instantiate
in class BaseQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
public java.lang.Class<? extends QueryScope> getPreferredScopeClass()
IQuerySpecification
EMFScope
class is returned.public org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher instantiate()
BaseQuerySpecification
instantiate
in interface IQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
instantiate
in class BaseQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>