public final class Helpers extends 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 helpers.vql,
in order to achieve better performance than one-by-one on-demand matcher initialization.
From package org.eclipse.viatra.transformation.views.traceability.patterns, the group contains the definition of the following patterns:
IPatternGroup
querySpecifications
Modifier and Type | Method and Description |
---|---|
EmptyTraceQuerySpecification |
getEmptyTrace() |
EmptyTraceMatcher |
getEmptyTrace(ViatraQueryEngine engine) |
Param2targetQuerySpecification |
getParam2target() |
Param2targetMatcher |
getParam2target(ViatraQueryEngine engine) |
TraceQuerySpecification |
getTrace() |
TraceMatcher |
getTrace(ViatraQueryEngine engine) |
Trace2objectQuerySpecification |
getTrace2object() |
Trace2objectMatcher |
getTrace2object(ViatraQueryEngine engine) |
Trace2paramQuerySpecification |
getTrace2param() |
Trace2paramMatcher |
getTrace2param(ViatraQueryEngine engine) |
Trace2targetQuerySpecification |
getTrace2target() |
Trace2targetMatcher |
getTrace2target(ViatraQueryEngine engine) |
static Helpers |
instance()
Access the pattern group.
|
getSpecifications
prepare, prepare
public static Helpers instance() throws ViatraQueryException
ViatraQueryException
- if there was an error loading the generated code of pattern specificationspublic EmptyTraceQuerySpecification getEmptyTrace() throws ViatraQueryException
ViatraQueryException
public EmptyTraceMatcher getEmptyTrace(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public Trace2targetQuerySpecification getTrace2target() throws ViatraQueryException
ViatraQueryException
public Trace2targetMatcher getTrace2target(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public Trace2paramQuerySpecification getTrace2param() throws ViatraQueryException
ViatraQueryException
public Trace2paramMatcher getTrace2param(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public Trace2objectQuerySpecification getTrace2object() throws ViatraQueryException
ViatraQueryException
public Trace2objectMatcher getTrace2object(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public Param2targetQuerySpecification getParam2target() throws ViatraQueryException
ViatraQueryException
public Param2targetMatcher getParam2target(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public TraceQuerySpecification getTrace() throws ViatraQueryException
ViatraQueryException
public TraceMatcher getTrace(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException