Package tools.refinery.interpreter.api
Class GenericQueryGroup
java.lang.Object
tools.refinery.interpreter.api.impl.BaseQueryGroup
tools.refinery.interpreter.api.GenericQueryGroup
- All Implemented Interfaces:
IQueryGroup
Generic implementation of
IQueryGroup
, covering an arbitrarily chosen set of patterns. Use the public
constructor or static GenericQueryGroup.of(...) methods to instantiate.-
Constructor Summary
ConstructorsConstructorDescriptionGenericQueryGroup
(Set<IQuerySpecification<?>> patterns) Creates a GenericQueryGroup object with a set of patterns. -
Method Summary
Modifier and TypeMethodDescriptionReturns the currently assignedIQuerySpecification
s.static IQueryGroup
of
(Set<IQuerySpecification<?>> querySpecifications) Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.static IQueryGroup
of
(Stream<IQuerySpecification<?>> querySpecifications) Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.static IQueryGroup
of
(IQueryGroup... subGroups) Creates a genericIQueryGroup
instance from otherIQueryGroup
objects (subgroups).static IQueryGroup
of
(IQuerySpecification<?>... querySpecifications) Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.Methods inherited from class tools.refinery.interpreter.api.impl.BaseQueryGroup
prepare, prepare
-
Constructor Details
-
GenericQueryGroup
Creates a GenericQueryGroup object with a set of patterns.- Parameters:
patterns
-
-
-
Method Details
-
getSpecifications
Description copied from interface:IQueryGroup
Returns the currently assignedIQuerySpecification
s. -
of
Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.- Since:
- 2.0
-
of
Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.- Parameters:
querySpecifications
-
-
of
Creates a genericIQueryGroup
instance fromIQuerySpecification
objects.- Parameters:
querySpecifications
-
-
of
Creates a genericIQueryGroup
instance from otherIQueryGroup
objects (subgroups).
-