Class GenericQueryGroup
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
-
- org.eclipse.viatra.query.runtime.api.GenericQueryGroup
-
- All Implemented Interfaces:
IQueryGroup
public class GenericQueryGroup extends BaseQueryGroup
Generic implementation ofIQueryGroup, covering an arbitrarily chosen set of patterns. Use the public constructor or static GenericQueryGroup.of(...) methods to instantiate.
-
-
Constructor Summary
Constructors Constructor Description GenericQueryGroup(java.util.Set<IQuerySpecification<?>> patterns)Creates a GenericQueryGroup object with a set of patterns.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<IQuerySpecification<?>>getSpecifications()Returns the currently assignedIQuerySpecifications.static IQueryGroupof(java.util.Set<IQuerySpecification<?>> querySpecifications)Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.static IQueryGroupof(java.util.stream.Stream<IQuerySpecification<?>> querySpecifications)Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.static IQueryGroupof(IQueryGroup... subGroups)Creates a genericIQueryGroupinstance from otherIQueryGroupobjects (subgroups).static IQueryGroupof(IQuerySpecification<?>... querySpecifications)Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.-
Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
prepare, prepare
-
-
-
-
Constructor Detail
-
GenericQueryGroup
public GenericQueryGroup(java.util.Set<IQuerySpecification<?>> patterns)
Creates a GenericQueryGroup object with a set of patterns.- Parameters:
patterns-
-
-
Method Detail
-
getSpecifications
public java.util.Set<IQuerySpecification<?>> getSpecifications()
Description copied from interface:IQueryGroupReturns the currently assignedIQuerySpecifications.
-
of
public static IQueryGroup of(java.util.stream.Stream<IQuerySpecification<?>> querySpecifications)
Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.- Since:
- 2.0
-
of
public static IQueryGroup of(java.util.Set<IQuerySpecification<?>> querySpecifications)
Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.- Parameters:
querySpecifications-
-
of
public static IQueryGroup of(IQuerySpecification<?>... querySpecifications)
Creates a genericIQueryGroupinstance fromIQuerySpecificationobjects.- Parameters:
querySpecifications-
-
of
public static IQueryGroup of(IQueryGroup... subGroups)
Creates a genericIQueryGroupinstance from otherIQueryGroupobjects (subgroups).
-
-