Class SharedQueryCache
- java.lang.Object
-
- net.ssehub.easy.varModel.confModel.QueryCache
-
- net.ssehub.easy.varModel.confModel.SharedQueryCache
-
class SharedQueryCache extends QueryCache
AlternativeQueryCacheif the same cache should be shared between twoConfigurations.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private QueryCachedelegate
-
Constructor Summary
Constructors Constructor Description SharedQueryCache(QueryCache original)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the cache, must be called from the configuration after the configuration was refreshed.java.util.List<ConstraintSyntaxTree>getPossibleValues(Reference refType)Calculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.
-
-
-
Field Detail
-
delegate
private QueryCache delegate
-
-
Constructor Detail
-
SharedQueryCache
SharedQueryCache(QueryCache original)
Sole constructor for this class.- Parameters:
original- The shared cache instance, which should be wrapped by this cache.
-
-
Method Detail
-
clear
public void clear()
Description copied from class:QueryCacheClears the cache, must be called from the configuration after the configuration was refreshed.- Overrides:
clearin classQueryCache
-
getPossibleValues
public java.util.List<ConstraintSyntaxTree> getPossibleValues(Reference refType)
Description copied from class:QueryCacheCalculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.- Overrides:
getPossibleValuesin classQueryCache- Parameters:
refType- The reference for which possible values should be calculated for.- Returns:
- A maybe empty list of possible values for the given
Reference. This list is unmodifiable and should not be stored outside of this cache.
-
-