Class PatternSupport
java.lang.Object
org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup
be.kuleuven.cs.distrinet.sparta.queries.PatternSupport
- All Implemented Interfaces:
org.eclipse.viatra.query.runtime.api.IQueryGroup
public final class PatternSupport
extends org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup
A pattern group formed of all public patterns defined in PatternSupport.vql.
Use the static instance as any
org.eclipse.viatra.query.runtime.api.IQueryGroup}, to conveniently prepare
a VIATRA Query engine for matching all patterns originally defined in file PatternSupport.vql,
in order to achieve better performance than one-by-one on-demand matcher initialization.
invalid @link
{@link interface
From package be.kuleuven.cs.distrinet.sparta.queries, the group contains the definition of the following patterns:
- IsThreatTypeCatalog
- ThreatTypeCatalogThreatTypes
- ThreatTypeContains
- ThreatTypeCatalogThreatTypesWithNonEmptyPatterns
- ThreatTypeTopLevel
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup
querySpecifications -
Method Summary
Modifier and TypeMethodDescriptiongetIsThreatTypeCatalog(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) getThreatTypeCatalogThreatTypes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) getThreatTypeCatalogThreatTypesWithNonEmptyPatterns(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) getThreatTypeContains(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) getThreatTypeTopLevel(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) static PatternSupportinstance()Access the pattern group.Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup
getSpecificationsMethods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
prepare, prepare
-
Method Details
-
instance
Access the pattern group.- Returns:
- the singleton instance of the group
-
getIsThreatTypeCatalog
-
getIsThreatTypeCatalog
public IsThreatTypeCatalog.Matcher getIsThreatTypeCatalog(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) -
getThreatTypeCatalogThreatTypes
-
getThreatTypeCatalogThreatTypes
public ThreatTypeCatalogThreatTypes.Matcher getThreatTypeCatalogThreatTypes(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) -
getThreatTypeContains
-
getThreatTypeContains
public ThreatTypeContains.Matcher getThreatTypeContains(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) -
getThreatTypeCatalogThreatTypesWithNonEmptyPatterns
public ThreatTypeCatalogThreatTypesWithNonEmptyPatterns getThreatTypeCatalogThreatTypesWithNonEmptyPatterns() -
getThreatTypeCatalogThreatTypesWithNonEmptyPatterns
public ThreatTypeCatalogThreatTypesWithNonEmptyPatterns.Matcher getThreatTypeCatalogThreatTypesWithNonEmptyPatterns(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) -
getThreatTypeTopLevel
-
getThreatTypeTopLevel
public ThreatTypeTopLevel.Matcher getThreatTypeTopLevel(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
-