Class EvalGuardForgeNode
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNodeBase
com.espertech.esper.common.internal.epl.pattern.guard.EvalGuardForgeNode
- All Implemented Interfaces:
EvalForgeNode
This class represents a guard in the evaluation tree representing an event expressions.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNodeBase
audit, factoryNodeId
-
Constructor Summary
ConstructorsConstructorDescriptionEvalGuardForgeNode
(boolean attachPatternText, PatternGuardSpec patternGuardSpec) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectSelfFilterAndSchedule
(Function<Short, CallbackAttribution> callbackAttribution, List<FilterSpecTracked> filters, List<ScheduleHandleTracked> schedules) Returns the guard factory.Returns the guard object specification to use for instantiating the guard factory and guard.Returns precendence.protected void
inlineCodegen
(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) boolean
boolean
protected String
void
setGuardForge
(GuardForge guardForge) Supplies the guard factory to the node.void
toPrecedenceFreeEPL
(StringWriter writer) final String
toString()
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
-
EvalGuardForgeNode
Constructor.- Parameters:
patternGuardSpec
- - factory for guard constructionattachPatternText
- whether to attach EPL subexpression text
-
-
Method Details
-
getPatternGuardSpec
Returns the guard object specification to use for instantiating the guard factory and guard.- Returns:
- guard specification
-
setGuardForge
Supplies the guard factory to the node.- Parameters:
guardForge
- is the guard factory
-
getGuardForge
Returns the guard factory.- Returns:
- guard factory
-
toString
-
isFilterChildNonQuitting
public boolean isFilterChildNonQuitting() -
isStateful
public boolean isStateful() -
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
-
collectSelfFilterAndSchedule
public void collectSelfFilterAndSchedule(Function<Short, CallbackAttribution> callbackAttribution, List<FilterSpecTracked> filters, List<ScheduleHandleTracked> schedules) -
toPrecedenceFreeEPL
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classEvalForgeNodeBase
-
getPrecedence
Description copied from interface:EvalForgeNode
Returns precendence.- Returns:
- precendence
-
appliesTo
- Specified by:
appliesTo
in classEvalForgeNodeBase
-