Class NopTraceCollector
java.lang.Object
tools.refinery.interpreter.matchers.psystem.rewriters.NopTraceCollector
- All Implemented Interfaces:
IPTraceableTraceProvider,IRewriterTraceCollector
This implementation does not store any traces and scales to NOP for every traceability feature.
- Since:
- 1.6
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrace(PTraceable origin, PTraceable derivative) Mark the given derivative to be originated from the given original constraint.voidderivativeRemoved(PTraceable derivative, IDerivativeModificationReason reason) Indicate that the given derivative is removed from the resulting query, thus its trace information should be removed also.getCanonicalTraceables(PTraceable derivative) Find and return the canonicalPTraceables in the original query which are the sources of the given derivativePTraceableaccording to the transformation.getRemovalReasons(PTraceable traceable) Returns the reasons for which the traceable element has been removed by the rewriters.getRewrittenTraceables(PTraceable source) Find and return thePTraceables in the rewritten query which are the destinations of the given sourcePTraceableaccording to the transformation.booleanisRemoved(PTraceable traceable) Returns whether the given traceable element has been removed by every rewriter for a reason.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getCanonicalTraceables
Description copied from interface:IPTraceableTraceProviderFind and return the canonicalPTraceables in the original query which are the sources of the given derivativePTraceableaccording to the transformation.- Specified by:
getCanonicalTraceablesin interfaceIPTraceableTraceProvider- Parameters:
derivative- aPTraceablewhich is contained by thePQueryproduced by the associated rewriter- Since:
- 2.0
-
getRewrittenTraceables
Description copied from interface:IPTraceableTraceProviderFind and return thePTraceables in the rewritten query which are the destinations of the given sourcePTraceableaccording to the transformation.- Specified by:
getRewrittenTraceablesin interfaceIPTraceableTraceProvider- Parameters:
source- aPTraceablewhich is contained by aPQuerybefore rewriting- Since:
- 2.0
-
addTrace
Description copied from interface:IRewriterTraceCollectorMark the given derivative to be originated from the given original constraint.- Specified by:
addTracein interfaceIRewriterTraceCollector
-
derivativeRemoved
Description copied from interface:IRewriterTraceCollectorIndicate that the given derivative is removed from the resulting query, thus its trace information should be removed also.- Specified by:
derivativeRemovedin interfaceIRewriterTraceCollector
-
isRemoved
Description copied from interface:IPTraceableTraceProviderReturns whether the given traceable element has been removed by every rewriter for a reason.- Specified by:
isRemovedin interfaceIPTraceableTraceProvider
-
getRemovalReasons
Description copied from interface:IPTraceableTraceProviderReturns the reasons for which the traceable element has been removed by the rewriters.- Specified by:
getRemovalReasonsin interfaceIPTraceableTraceProvider- Returns:
- the reasons of removal during rewriting
- Since:
- 2.0
-