public class GenericPatternMatcher extends BaseMatcher<GenericPatternMatch>
GenericQuerySpecification
first, then
invoke e.g. BaseQuerySpecification.getMatcher(ViatraQueryEngine)
.
in conjunction with ViatraQueryEngine.on(org.eclipse.viatra.query.runtime.api.scope.QueryScope)
.
Whenever available, consider using the pattern-specific generated matcher API instead.
Matches of the pattern will be represented as GenericPatternMatch
.
GenericPatternMatch
,
GenericMatchProcessor
,
GenericQuerySpecification
engine, querySpecification
Modifier | Constructor and Description |
---|---|
|
GenericPatternMatcher(GenericQuerySpecification<? extends GenericPatternMatcher> specification) |
protected |
GenericPatternMatcher(ViatraQueryEngine engine,
GenericQuerySpecification<? extends GenericPatternMatcher> specification)
Deprecated.
use
GenericPatternMatcher(GenericQuerySpecification) instead |
Modifier and Type | Method and Description |
---|---|
GenericPatternMatch |
arrayToMatch(java.lang.Object[] parameters)
Converts the array representation of a pattern match to an immutable Match object.
|
GenericPatternMatch |
arrayToMatchMutable(java.lang.Object[] parameters)
Converts the array representation of a pattern match to a mutable Match object.
|
GenericQuerySpecification<? extends GenericPatternMatcher> |
getSpecification()
The pattern that will be matched.
|
protected GenericPatternMatch |
tupleToMatch(Tuple t) |
countMatches, countMatches, emptyArray, forEachMatch, forEachMatch, forOneArbitraryMatch, forOneArbitraryMatch, getAllMatches, getAllMatches, getAllValues, getAllValues, getCapabilities, getEngine, getOneArbitraryMatch, getOneArbitraryMatch, getParameterNames, getPatternName, getPositionOfParameter, hasMatch, matchToArray, newEmptyMatch, newMatch, rawAccumulateAllValues, rawCountMatches, rawForEachMatch, rawForOneArbitraryMatch, rawGetAllMatches, rawGetAllValues, rawGetOneArbitraryMatch, rawHasMatch, setBackend
@Deprecated protected GenericPatternMatcher(ViatraQueryEngine engine, GenericQuerySpecification<? extends GenericPatternMatcher> specification) throws ViatraQueryException
GenericPatternMatcher(GenericQuerySpecification)
insteadViatraQueryException
public GenericPatternMatcher(GenericQuerySpecification<? extends GenericPatternMatcher> specification) throws ViatraQueryException
ViatraQueryException
public GenericPatternMatch arrayToMatch(java.lang.Object[] parameters)
BaseMatcher
arrayToMatch
in class BaseMatcher<GenericPatternMatch>
public GenericPatternMatch arrayToMatchMutable(java.lang.Object[] parameters)
BaseMatcher
arrayToMatchMutable
in class BaseMatcher<GenericPatternMatch>
protected GenericPatternMatch tupleToMatch(Tuple t)
tupleToMatch
in class BaseMatcher<GenericPatternMatch>
public GenericQuerySpecification<? extends GenericPatternMatcher> getSpecification()
ViatraQueryMatcher
getSpecification
in interface ViatraQueryMatcher<GenericPatternMatch>
getSpecification
in class BaseMatcher<GenericPatternMatch>