public class ExprSubstitutionNode extends ExprNodeBase
Constructor and Description |
---|
ExprSubstitutionNode(Integer index)
Ctor.
|
ExprSubstitutionNode(String name)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsNode(ExprNode node,
boolean ignoreStreamPrefix)
Return true if a expression node semantically equals the current node, or false if not.
|
Object |
evaluate(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext) |
ExprEvaluator |
getExprEvaluator() |
ExprForge |
getForge() |
Integer |
getIndex()
Returns the substitution parameter index (or null if by-name).
|
String |
getName()
Returns the substitution parameter name (or null if by-index).
|
ExprPrecedenceEnum |
getPrecedence()
Returns precedence.
|
Class |
getType() |
boolean |
isConstantResult()
Returns true if the expression node's evaluation value doesn't depend on any events data,
as must be determined at validation time, which is bottom-up and therefore
reliably allows each node to determine constant value.
|
void |
toPrecedenceFreeEPL(StringWriter writer) |
ExprNode |
validate(ExprValidationContext validationContext) |
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
public ExprSubstitutionNode(Integer index)
index
- is the index of the substitution parameterpublic ExprSubstitutionNode(String name)
name
- is the name of the substitution parameterpublic ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
ExprValidationException
public Integer getIndex()
public String getName()
public boolean isConstantResult()
ExprNode
public Class getType()
public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
public ExprEvaluator getExprEvaluator()
public ExprForge getForge()
public void toPrecedenceFreeEPL(StringWriter writer)
toPrecedenceFreeEPL
in class ExprNodeBase
public ExprPrecedenceEnum getPrecedence()
ExprNode
public boolean equalsNode(ExprNode node, boolean ignoreStreamPrefix)
ExprNode
Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event properties