Package org.eclipse.xsemantics.runtime
Class XsemanticsProvider<T>
- java.lang.Object
-
- org.eclipse.xsemantics.runtime.XsemanticsProvider<T>
-
- All Implemented Interfaces:
com.google.inject.Provider<XsemanticsCachedData<T>>,javax.inject.Provider<XsemanticsCachedData<T>>
public abstract class XsemanticsProvider<T> extends java.lang.Object implements com.google.inject.Provider<XsemanticsCachedData<T>>
We use this to keep track of whether this provider's get method has been called in order to understand if we use a cached value or not inXsemanticsCache; this helps us to provide a betterRuleApplicationTrace.- Since:
- 1.6
- Author:
- Lorenzo Bettini
-
-
Constructor Summary
Constructors Constructor Description XsemanticsProvider(RuleEnvironment environment, RuleApplicationTrace trace)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TdoGet()XsemanticsCachedData<T>get()booleanisCalled()
-
-
-
Constructor Detail
-
XsemanticsProvider
public XsemanticsProvider(RuleEnvironment environment, RuleApplicationTrace trace)
-
-
Method Detail
-
get
public XsemanticsCachedData<T> get()
-
doGet
public abstract T doGet()
-
isCalled
public boolean isCalled()
-
-