public final class UtilityQueries
extends org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup
Use the static instance as any org.eclipse.viatra.query.runtime.api.IPatternGroup
, to conveniently prepare
a VIATRA Query engine for matching all patterns originally defined in file UtilityQueries.vql,
in order to achieve better performance than one-by-one on-demand matcher initialization.
From package gov.nasa.jpl.mbee.mdk.queries, the group contains the definition of the following patterns:
IPatternGroup
Modifier and Type | Method and Description |
---|---|
BlockQuerySpecification |
getBlock() |
BlockMatcher |
getBlock(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) |
GeneralizationQuerySpecification |
getGeneralization() |
GeneralizationMatcher |
getGeneralization(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) |
PropertyAttributesQuerySpecification |
getPropertyAttributes() |
PropertyAttributesMatcher |
getPropertyAttributes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) |
UsedStereotypesQuerySpecification |
getUsedStereotypes() |
UsedStereotypesMatcher |
getUsedStereotypes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) |
static UtilityQueries |
instance()
Access the pattern group.
|
getSpecifications
public static UtilityQueries instance()
ViatraQueryRuntimeException
- if there was an error loading the generated code of pattern specificationspublic BlockQuerySpecification getBlock()
public BlockMatcher getBlock(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
public PropertyAttributesQuerySpecification getPropertyAttributes()
public PropertyAttributesMatcher getPropertyAttributes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
public GeneralizationQuerySpecification getGeneralization()
public GeneralizationMatcher getGeneralization(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
public UsedStereotypesQuerySpecification getUsedStereotypes()
public UsedStereotypesMatcher getUsedStereotypes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)