Class PackageBasedQueryGroup
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
-
- org.eclipse.viatra.query.runtime.api.PackageBasedQueryGroup
-
- All Implemented Interfaces:
IQueryGroup
public class PackageBasedQueryGroup extends BaseQueryGroup
Package basedBaseQueryGroup
implementation. It handles patterns as a group within the same package.
-
-
Constructor Summary
Constructors Constructor Description PackageBasedQueryGroup(java.lang.String packageName)
Creates a query group with specifications of a given package from theQuerySpecificationRegistry
.PackageBasedQueryGroup(java.lang.String packageName, boolean includeSubPackages)
Creates a query group with specifications of a given package from theQuerySpecificationRegistry
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPackageName()
java.util.Set<IQuerySpecification<?>>
getSpecifications()
Returns the currently assignedIQuerySpecification
s.boolean
isIncludeSubPackages()
void
refresh()
Refreshes the pattern group from the query specification registry based on the parameters used during the initialization.-
Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQueryGroup
prepare, prepare
-
-
-
-
Constructor Detail
-
PackageBasedQueryGroup
public PackageBasedQueryGroup(java.lang.String packageName)
Creates a query group with specifications of a given package from theQuerySpecificationRegistry
. Only query specifications with the exact package fully qualified name are included.- Parameters:
packageName
- that contains the specifications
-
PackageBasedQueryGroup
public PackageBasedQueryGroup(java.lang.String packageName, boolean includeSubPackages)
Creates a query group with specifications of a given package from theQuerySpecificationRegistry
.- Parameters:
packageName
- that contain the specificationsincludeSubPackages
- if true all query specifications with package names starting with the given package are included
-
-
Method Detail
-
getSpecifications
public java.util.Set<IQuerySpecification<?>> getSpecifications()
Description copied from interface:IQueryGroup
Returns the currently assignedIQuerySpecification
s.
-
getPackageName
public java.lang.String getPackageName()
-
isIncludeSubPackages
public boolean isIncludeSubPackages()
-
refresh
public void refresh()
Refreshes the pattern group from the query specification registry based on the parameters used during the initialization.
-
-