Class QueryBasedFeature
- java.lang.Object
-
- org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeature
-
- Direct Known Subclasses:
IterationQueryBasedFeature,MultiValueQueryBasedFeature,SingleValueQueryBasedFeature
public abstract class QueryBasedFeature extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QueryBasedFeature(org.eclipse.emf.ecore.EStructuralFeature feature, boolean keepCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidafterUpdate()protected voidappendNotificationToList(org.eclipse.emf.ecore.impl.ENotificationImpl notification)protected abstract voidbeforeUpdate()protected AdvancedViatraQueryEngineengineForMatcher()protected org.eclipse.emf.ecore.EStructuralFeaturegetFeature()abstract QueryBasedFeatureKindgetKind()protected ViatraQueryMatcher<IPatternMatch>getMatcher()protected java.lang.StringgetSourceParamName()protected org.eclipse.emf.ecore.InternalEObjectgetSourceValue(IPatternMatch signature)protected java.lang.StringgetTargetParamName()protected java.lang.ObjectgetTargetValue(IPatternMatch signature)abstract java.lang.ObjectgetValue(java.lang.Object source)protected voidinitialize(ViatraQueryMatcher<IPatternMatch> matcher, java.lang.String sourceParamName, java.lang.String targetParamName)protected booleanisCached()protected booleanisInitialized()protected abstract voidprocessAppearedMatch(IPatternMatch signature)protected abstract voidprocessDisappearedMatch(IPatternMatch signature)protected voidsetMatcher(ViatraQueryMatcher<IPatternMatch> matcher)protected voidsetSourceParamName(java.lang.String sourceParamName)protected voidsetTargetParamName(java.lang.String targetParamName)protected voidstartMonitoring()Call this once to start handling callbacks.
-
-
-
Method Detail
-
initialize
protected void initialize(ViatraQueryMatcher<IPatternMatch> matcher, java.lang.String sourceParamName, java.lang.String targetParamName)
-
getMatcher
protected ViatraQueryMatcher<IPatternMatch> getMatcher()
-
setMatcher
protected void setMatcher(ViatraQueryMatcher<IPatternMatch> matcher)
-
getFeature
protected org.eclipse.emf.ecore.EStructuralFeature getFeature()
-
getSourceParamName
protected java.lang.String getSourceParamName()
-
setSourceParamName
protected void setSourceParamName(java.lang.String sourceParamName)
-
getTargetParamName
protected java.lang.String getTargetParamName()
-
setTargetParamName
protected void setTargetParamName(java.lang.String targetParamName)
-
isCached
protected boolean isCached()
-
isInitialized
protected boolean isInitialized()
-
getKind
public abstract QueryBasedFeatureKind getKind()
-
afterUpdate
protected abstract void afterUpdate()
-
beforeUpdate
protected abstract void beforeUpdate()
-
startMonitoring
protected void startMonitoring()
Call this once to start handling callbacks.
-
engineForMatcher
protected AdvancedViatraQueryEngine engineForMatcher()
-
getValue
public abstract java.lang.Object getValue(java.lang.Object source)
-
processAppearedMatch
protected abstract void processAppearedMatch(IPatternMatch signature)
-
getSourceValue
protected org.eclipse.emf.ecore.InternalEObject getSourceValue(IPatternMatch signature)
-
getTargetValue
protected java.lang.Object getTargetValue(IPatternMatch signature)
-
processDisappearedMatch
protected abstract void processDisappearedMatch(IPatternMatch signature)
-
appendNotificationToList
protected void appendNotificationToList(org.eclipse.emf.ecore.impl.ENotificationImpl notification)
-
-