Class EvalObserverForgeNode
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNodeBase
com.espertech.esper.common.internal.epl.pattern.observer.EvalObserverForgeNode
- All Implemented Interfaces:
EvalForgeNode
This class represents an observer expression in the evaluation tree representing an pattern expression.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNodeBase
audit, factoryNodeId
-
Constructor Summary
ConstructorDescriptionEvalObserverForgeNode
(boolean attachPatternText, PatternObserverSpec patternObserverSpec) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectSelfFilterAndSchedule
(Function<Short, CallbackAttribution> callbackAttribution, List<FilterSpecTracked> filters, List<ScheduleHandleTracked> schedules) Returns the observer object specification to use for instantiating the observer factory and observer.Returns precendence.protected void
inlineCodegen
(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) protected String
void
setObserverFactory
(ObserverForge observerForge) Supplies the observer factory to the node.void
toPrecedenceFreeEPL
(StringWriter writer) protected EPTypeClass
Methods inherited from class com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNodeBase
addChildNode, addChildNodes, getChildNodes, getFactoryNodeId, isAudit, makeCodegen, setAudit, setFactoryNodeId, setStateMgmtSettings, toEPL
-
Constructor Details
-
EvalObserverForgeNode
Constructor.- Parameters:
patternObserverSpec
- is the factory to use to get an observer instanceattachPatternText
- whether to attach EPL subexpression text
-
-
Method Details
-
typeOfFactory
- Specified by:
typeOfFactory
in classEvalForgeNodeBase
-
nameOfFactory
- Specified by:
nameOfFactory
in classEvalForgeNodeBase
-
inlineCodegen
protected void inlineCodegen(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) - Specified by:
inlineCodegen
in classEvalForgeNodeBase
-
getPatternObserverSpec
Returns the observer object specification to use for instantiating the observer factory and observer.- Returns:
- observer specification
-
setObserverFactory
Supplies the observer factory to the node.- Parameters:
observerForge
- is the observer forge
-
collectSelfFilterAndSchedule
public void collectSelfFilterAndSchedule(Function<Short, CallbackAttribution> callbackAttribution, List<FilterSpecTracked> filters, List<ScheduleHandleTracked> schedules) -
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classEvalForgeNodeBase
-
toPrecedenceFreeEPL
-
getPrecedence
Description copied from interface:EvalForgeNode
Returns precendence.- Returns:
- precendence
-
appliesTo
- Specified by:
appliesTo
in classEvalForgeNodeBase
-