public class ExprDeclaredNodeImpl extends ExprNodeBase implements ExprDeclaredNode, ExprDeclaredOrLambdaNode, ExprFilterOptimizableNode, ExprNodeInnerNodeProvider, ExprConstantNode
Constructor and Description |
---|
ExprDeclaredNodeImpl(ExpressionDeclItem prototype,
List<ExprNode> chainParameters,
ContextCompileTimeDescriptor contextDescriptor,
ExprNode expressionBodyCopy) |
addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
toEPL
public ExprDeclaredNodeImpl(ExpressionDeclItem prototype, List<ExprNode> chainParameters, ContextCompileTimeDescriptor contextDescriptor, ExprNode expressionBodyCopy)
public ExprNode getBody()
getBody
in interface ExprDeclaredNode
public List<ExprNode> getAdditionalNodes()
getAdditionalNodes
in interface ExprNodeInnerNodeProvider
public boolean validated()
validated
in interface ExprDeclaredOrLambdaNode
public Class getConstantType()
getConstantType
in interface ExprConstantNode
public Object getConstantValue()
getConstantValue
in interface ExprConstantNode
public LinkedHashMap<String,Integer> getOuterStreamNames(Map<String,Integer> outerStreamNames) throws ExprValidationException
getOuterStreamNames
in interface ExprDeclaredNode
ExprValidationException
public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
validate
in interface ExprValidator
ExprValidationException
public boolean getFilterLookupEligible()
getFilterLookupEligible
in interface ExprFilterOptimizableNode
public ExprFilterSpecLookupableForge getFilterLookupable()
getFilterLookupable
in interface ExprFilterOptimizableNode
public boolean isConstantResult()
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.
equalsNode
in interface ExprNode
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event propertiespublic void accept(ExprNodeVisitor visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
accept
in class ExprNodeBase
visitor
- to visit each node and each child node.public void accept(ExprNodeVisitorWithParent visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
accept
in class ExprNodeBase
visitor
- to visit each node and each child node.public void acceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
ExprNode
acceptChildnodes
in interface ExprNode
acceptChildnodes
in class ExprNodeBase
visitor
- to applyparent
- nodepublic ExprNode getExpressionBodyCopy()
public ExpressionDeclItem getPrototype()
getPrototype
in interface ExprDeclaredNode
public ExpressionDeclItem getPrototypeWVisibility()
public List<ExprNode> getChainParameters()
getChainParameters
in interface ExprDeclaredNode
public ExprEvaluator getExprEvaluator()
public void toPrecedenceFreeEPL(StringWriter writer)
toPrecedenceFreeEPL
in class ExprNodeBase
public ExprPrecedenceEnum getPrecedence()
ExprNode
getPrecedence
in interface ExprNode
Copyright © 2005–2018. All rights reserved.