org.eclipse.incquery.runtime.api.scope

## Class IncQueryScope

- java.lang.Object
- - org.eclipse.incquery.runtime.internal.apiimpl.EngineContextFactory
  - - org.eclipse.incquery.runtime.api.scope.IncQueryScope

- Direct Known Subclasses:
    EMFScope

      public abstract class IncQueryScope
      extends EngineContextFactory

  Defines a scope for the IncQuery engine, which determines the set of model elements that query evaluation operates on.
  Author:
    Bergmann Gabor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IncQueryScope()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isCompatibleWithQueryScope(java.lang.Class<? extends IncQueryScope> queryScopeClass)` Determines whether a query engine initialized on this scope can evaluate queries formulated against the given scope type.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IncQueryScope

          public IncQueryScope()

  - ### Method Detail

    - #### isCompatibleWithQueryScope

          public boolean isCompatibleWithQueryScope(java.lang.Class<? extends IncQueryScope> queryScopeClass)

      Determines whether a query engine initialized on this scope can evaluate queries formulated against the given scope type.

      Every query scope class is compatible with a query engine initialized on a scope of the same class or a subclass.

      Parameters:
        `queryScopeClass` - the scope class returned by invoking `IQuerySpecification.getPreferredScopeClass()` on a query specification
      Returns:
        true if an `IncQueryEngine` initialized on this scope can consume an `IQuerySpecification`