Class BaseQueryGroup
java.lang.Object
tools.refinery.interpreter.api.impl.BaseQueryGroup
- All Implemented Interfaces:
IQueryGroup
- Direct Known Subclasses:
BaseGeneratedPatternGroup
,GenericQueryGroup
Base implementation of
IQueryGroup
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
prepare
(AdvancedInterpreterEngine engine) void
prepare
(InterpreterEngine engine) Initializes matchers for the group of patterns within anInterpreterEngine
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.interpreter.api.IQueryGroup
getSpecifications
-
Constructor Details
-
BaseQueryGroup
public BaseQueryGroup()
-
-
Method Details
-
prepare
Description copied from interface:IQueryGroup
Initializes matchers for the group of patterns within anInterpreterEngine
. If some of the pattern matchers are already constructed in the engine, no task is performed for them.This preparation step has the advantage that it prepares pattern matchers for an arbitrary number of patterns in a single-pass traversal of the model. This is typically more efficient than traversing the model each time an individual pattern matcher is initialized on demand. The performance benefit only manifests itself if the engine is not in wildcard mode.
- Specified by:
prepare
in interfaceIQueryGroup
- Parameters:
engine
- the existing Refinery Interpreter engine in which the matchers will be created.
-
prepare
-