Class BaseQueryGroup

java.lang.Object
tools.refinery.interpreter.api.impl.BaseQueryGroup
All Implemented Interfaces:
IQueryGroup
Direct Known Subclasses:
BaseGeneratedPatternGroup, GenericQueryGroup

public abstract class BaseQueryGroup extends Object implements IQueryGroup
Base implementation of IQueryGroup.
  • Constructor Details

    • BaseQueryGroup

      public BaseQueryGroup()
  • Method Details

    • prepare

      public void prepare(InterpreterEngine engine)
      Description copied from interface: IQueryGroup
      Initializes matchers for the group of patterns within an InterpreterEngine. 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 interface IQueryGroup
      Parameters:
      engine - the existing Refinery Interpreter engine in which the matchers will be created.
    • prepare

      protected void prepare(AdvancedInterpreterEngine engine)