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, newEmptyMatch, newMatch
ensureInitializedInternal, ensureInitializedInternalSneaky, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getMatcher, getParameterNames, getParameters, getPositionOfParameter, processInitializerError
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) throws ViatraQueryException
instantiate
in class BaseQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>
ViatraQueryException
public java.lang.Class<? extends QueryScope> getPreferredScopeClass()
IQuerySpecification
EMFScope
class is returned.public org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher instantiate() throws ViatraQueryException
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>
ViatraQueryException