Class QueryScope
java.lang.Object
tools.refinery.interpreter.internal.apiimpl.EngineContextFactory
tools.refinery.interpreter.api.scope.QueryScope
Defines a scope for a Refinery Interpreter engine, which determines the set of model elements that query evaluation
operates on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompatibleWithQueryScope
(Class<? extends QueryScope> queryScopeClass) Determines whether a query engine initialized on this scope can evaluate queries formulated against the given scope type.Methods inherited from class tools.refinery.interpreter.internal.apiimpl.EngineContextFactory
createEngineContext
-
Constructor Details
-
QueryScope
public QueryScope()
-
-
Method Details
-
isCompatibleWithQueryScope
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 invokingIQuerySpecification.getPreferredScopeClass()
on a query specification- Returns:
- true if an
InterpreterEngine
initialized on this scope can consume anIQuerySpecification
-