public abstract class ExprNodeBase extends Object implements ExprNode
Constructor and Description |
---|
ExprNodeBase()
Constructor creates a list of child nodes.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ExprNodeVisitor visitor)
Accept the visitor.
|
void |
accept(ExprNodeVisitorWithParent visitor)
Accept the visitor.
|
void |
acceptChildnodes(ExprNodeVisitorWithParent visitor,
ExprNode parent)
Accept a visitor that receives both parent and child node.
|
void |
addChildNode(ExprNode childNode)
Adds a child node.
|
void |
addChildNodes(Collection<ExprNode> childNodeColl)
Adds child nodes.
|
void |
addChildNodeToFront(ExprNode childNode) |
ExprNode[] |
getChildNodes()
Returns list of child nodes.
|
void |
replaceUnlistedChildNode(ExprNode nodeToReplace,
ExprNode newNode) |
void |
setChildNode(int index,
ExprNode newNode) |
void |
setChildNodes(ExprNode... nodes) |
void |
toEPL(StringWriter writer,
ExprPrecedenceEnum parentPrecedence) |
abstract void |
toPrecedenceFreeEPL(StringWriter writer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equalsNode, getForge, getPrecedence, isConstantResult
validate
public abstract void toPrecedenceFreeEPL(StringWriter writer)
public void accept(ExprNodeVisitor visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
public void accept(ExprNodeVisitorWithParent visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
public void acceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
ExprNode
acceptChildnodes
in interface ExprNode
visitor
- to applyparent
- nodepublic final void addChildNode(ExprNode childNode)
ExprNode
addChildNode
in interface ExprNode
childNode
- is the child evaluation tree node to addpublic final void addChildNodes(Collection<ExprNode> childNodeColl)
ExprNode
addChildNodes
in interface ExprNode
childNodeColl
- are the child evaluation tree node to addpublic final ExprNode[] getChildNodes()
ExprNode
getChildNodes
in interface ExprNode
public void replaceUnlistedChildNode(ExprNode nodeToReplace, ExprNode newNode)
replaceUnlistedChildNode
in interface ExprNode
public void addChildNodeToFront(ExprNode childNode)
public void setChildNodes(ExprNode... nodes)
setChildNodes
in interface ExprNode
public void setChildNode(int index, ExprNode newNode)
setChildNode
in interface ExprNode
public void toEPL(StringWriter writer, ExprPrecedenceEnum parentPrecedence)
toEPL
in interface ExprNodeRenderable