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, newMatchensureInitializedInternal, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getMatcher, getParameterNames, getParameters, getPositionOfParameter, processInitializerErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameter, getSimpleNameprotected GenericEMFPatternPQuery genericEMFPatternPQuery
public GenericQuerySpecification(GenericEMFPatternPQuery genericEMFPatternPQuery)
public GenericEMFPatternPQuery getInternalQueryRepresentation()
IQuerySpecificationgetInternalQueryRepresentation 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()
IQuerySpecificationEMFScope class is returned.public org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher instantiate()
BaseQuerySpecificationinstantiate in interface IQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>instantiate in class BaseQuerySpecification<org.eclipse.viatra.query.patternlanguage.emf.specification.GenericPatternMatcher>