public class GenericQuerySpecification extends GenericQuerySpecification<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.incquery.runtime.api.GenericPatternMatcher. Matches of the pattern will be represented as GenericPatternMatch.
GenericPatternMatcher
,
GenericPatternMatch
,
GenericMatchProcessor
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 IncQueryScope> |
getPreferredScopeClass()
The query is formulated over this kind of modeling platform.
|
GenericPatternMatcher |
instantiate(IncQueryEngine engine) |
newEmptyMatch, newMatch
getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getMatcher, getMatcher, getParameterNames, getParameters, getPositionOfParameter
public GenericQuerySpecification(GenericEMFPatternPQuery genericEMFPatternPQuery)
public GenericEMFPatternPQuery getInternalQueryRepresentation()
IQuerySpecification
getInternalQueryRepresentation
in interface IQuerySpecification<GenericPatternMatcher>
getInternalQueryRepresentation
in class BaseQuerySpecification<GenericPatternMatcher>
public GenericPatternMatcher instantiate(IncQueryEngine engine) throws IncQueryException
IncQueryException
public java.lang.Class<? extends IncQueryScope> getPreferredScopeClass()
IQuerySpecification
EMFScope
class is returned.