Class SingletonQuerySpecificationProvider
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.util.SingletonInstanceProvider<IQuerySpecification<?>>
-
- org.eclipse.viatra.query.runtime.extensibility.SingletonQuerySpecificationProvider
-
- All Implemented Interfaces:
java.util.function.Supplier<IQuerySpecification<?>>,IQuerySpecificationProvider,IProvider<IQuerySpecification<?>>
public class SingletonQuerySpecificationProvider extends SingletonInstanceProvider<IQuerySpecification<?>> implements IQuerySpecificationProvider
Provider implementation for storing an existing query specification instance.- Since:
- 1.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.viatra.query.runtime.matchers.util.IProvider
IProvider.ProvidedValueFunction
-
-
Constructor Summary
Constructors Constructor Description SingletonQuerySpecificationProvider(IQuerySpecification<?> instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFullyQualifiedName()Note that the provider will usually not load the query specification class to return the FQN.java.lang.StringgetSourceProjectName()Returns the name of project providing the specification (or null if not calculable)-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.util.SingletonInstanceProvider
get
-
-
-
-
Constructor Detail
-
SingletonQuerySpecificationProvider
public SingletonQuerySpecificationProvider(IQuerySpecification<?> instance)
- Parameters:
instance- the instance to wrap
-
-
Method Detail
-
getFullyQualifiedName
public java.lang.String getFullyQualifiedName()
Description copied from interface:IQuerySpecificationProviderNote that the provider will usually not load the query specification class to return the FQN.- Specified by:
getFullyQualifiedNamein interfaceIQuerySpecificationProvider- Returns:
- the fully qualified name of the provided query specification
-
getSourceProjectName
public java.lang.String getSourceProjectName()
Description copied from interface:IQuerySpecificationProviderReturns the name of project providing the specification (or null if not calculable)- Specified by:
getSourceProjectNamein interfaceIQuerySpecificationProvider
-
-