|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.EvalNodeFactoryBase
public abstract class EvalNodeFactoryBase
Superclass of all nodes in an evaluation tree representing an event pattern expression. Follows the Composite pattern. Child nodes do not carry references to parent nodes, the tree is unidirectional.
Method Summary | |
---|---|
void |
addChildNode(EvalFactoryNode childNode)
Adds a child node. |
void |
addChildNodes(java.util.Collection<EvalFactoryNode> childNodesToAdd)
|
java.util.List<EvalFactoryNode> |
getChildNodes()
Returns list of child nodes. |
short |
getFactoryNodeId()
|
abstract EvalNode |
makeEvalNode(PatternAgentInstanceContext agentInstanceContext)
|
void |
setFactoryNodeId(short factoryNodeId)
|
void |
toEPL(java.io.StringWriter writer,
PatternExpressionPrecedenceEnum parentPrecedence)
Write expression considering precendence. |
abstract void |
toPrecedenceFreeEPL(java.io.StringWriter writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.pattern.EvalFactoryNode |
---|
getPrecedence, isFilterChildNonQuitting, isStateful |
Method Detail |
---|
public abstract EvalNode makeEvalNode(PatternAgentInstanceContext agentInstanceContext)
makeEvalNode
in interface EvalFactoryNode
public abstract void toPrecedenceFreeEPL(java.io.StringWriter writer)
public void addChildNode(EvalFactoryNode childNode)
addChildNode
in interface EvalFactoryNode
childNode
- is the child evaluation tree node to addpublic void addChildNodes(java.util.Collection<EvalFactoryNode> childNodesToAdd)
addChildNodes
in interface EvalFactoryNode
public java.util.List<EvalFactoryNode> getChildNodes()
getChildNodes
in interface EvalFactoryNode
public short getFactoryNodeId()
getFactoryNodeId
in interface EvalFactoryNode
public void setFactoryNodeId(short factoryNodeId)
setFactoryNodeId
in interface EvalFactoryNode
public final void toEPL(java.io.StringWriter writer, PatternExpressionPrecedenceEnum parentPrecedence)
EvalFactoryNode
toEPL
in interface EvalFactoryNode
writer
- to useparentPrecedence
- precendence
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |