public abstract class EvalForgeNodeBase extends Object implements EvalForgeNode
Modifier and Type | Field and Description |
---|---|
protected boolean |
audit |
protected short |
factoryNodeId |
Constructor and Description |
---|
EvalForgeNodeBase(boolean attachPatternText)
Constructor creates a list of child nodes.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(EvalForgeNode childNode)
Adds a child node.
|
void |
addChildNodes(Collection<EvalForgeNode> childNodesToAdd) |
protected abstract AppliesTo |
appliesTo() |
List<EvalForgeNode> |
getChildNodes()
Returns list of child nodes.
|
short |
getFactoryNodeId() |
protected abstract void |
inlineCodegen(CodegenMethod method,
SAIFFInitializeSymbol symbols,
CodegenClassScope classScope) |
boolean |
isAudit() |
CodegenMethod |
makeCodegen(CodegenMethodScope parent,
SAIFFInitializeSymbol symbols,
CodegenClassScope classScope) |
protected abstract String |
nameOfFactory() |
void |
setAudit(boolean audit) |
void |
setFactoryNodeId(short factoryNodeId,
StatementRawInfo statementRawInfo,
int streamNum,
StateMgmtSettingsProvider stateMgmtSettingsProvider) |
void |
toEPL(StringWriter writer,
PatternExpressionPrecedenceEnum parentPrecedence)
Write expression considering precendence.
|
abstract void |
toPrecedenceFreeEPL(StringWriter writer) |
protected abstract EPTypeClass |
typeOfFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectSelfFilterAndSchedule, getPrecedence
public EvalForgeNodeBase(boolean attachPatternText)
attachPatternText
- whether to attach EPL subexpression textprotected abstract EPTypeClass typeOfFactory()
protected abstract String nameOfFactory()
protected abstract AppliesTo appliesTo()
protected abstract void inlineCodegen(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope)
public abstract void toPrecedenceFreeEPL(StringWriter writer)
public void addChildNode(EvalForgeNode childNode)
addChildNode
in interface EvalForgeNode
childNode
- is the child evaluation tree node to addpublic void addChildNodes(Collection<EvalForgeNode> childNodesToAdd)
addChildNodes
in interface EvalForgeNode
public List<EvalForgeNode> getChildNodes()
getChildNodes
in interface EvalForgeNode
public void setFactoryNodeId(short factoryNodeId, StatementRawInfo statementRawInfo, int streamNum, StateMgmtSettingsProvider stateMgmtSettingsProvider)
setFactoryNodeId
in interface EvalForgeNode
public short getFactoryNodeId()
getFactoryNodeId
in interface EvalForgeNode
public boolean isAudit()
public void setAudit(boolean audit)
setAudit
in interface EvalForgeNode
public final void toEPL(StringWriter writer, PatternExpressionPrecedenceEnum parentPrecedence)
EvalForgeNode
toEPL
in interface EvalForgeNode
writer
- to useparentPrecedence
- precendencepublic final CodegenMethod makeCodegen(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope)
makeCodegen
in interface EvalForgeNode
Copyright © 2005–2020. All rights reserved.