com.espertech.esper.epl.declexpr
Class ExprDeclaredNodeImpl

java.lang.Object
  extended by com.espertech.esper.epl.expression.ExprNodeBase
      extended by com.espertech.esper.epl.declexpr.ExprDeclaredNodeImpl
All Implemented Interfaces:
ExprDeclaredNode, ExprDeclaredOrLambdaNode, ExprFilterOptimizableNode, ExprNode, ExprNodeInnerNodeProvider, ExprValidator, MetaDefItem, java.io.Serializable

public class ExprDeclaredNodeImpl
extends ExprNodeBase
implements ExprDeclaredNode, ExprDeclaredOrLambdaNode, ExprFilterOptimizableNode, ExprNodeInnerNodeProvider

Expression instance as declared elsewhere.

See Also:
Serialized Form

Constructor Summary
ExprDeclaredNodeImpl(ExpressionDeclItem prototype, java.util.List<ExprNode> chainParameters)
           
 
Method Summary
 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.
 boolean equalsNode(ExprNode node)
          Return true if a expression node semantically equals the current node, or false if not.
 java.util.List<ExprNode> getAdditionalNodes()
           
 java.util.List<ExprNode> getChainParameters()
           
 ExprNode getExpressionBodyCopy()
           
 ExprEvaluator getExprEvaluator()
           
 FilterSpecLookupable getFilterLookupable()
           
 boolean getFilterLookupEligible()
           
 ExpressionDeclItem getPrototype()
           
 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 setSubselectOuterStreamNames(java.lang.String[] outerStreamNames, EventType[] outerEventTypesSelect, java.lang.String[] outerEventTypeNames, java.lang.String engineURI, ExprSubselectNode subselect, java.lang.String subexpressionStreamName, EventType subselectStreamType, java.lang.String subselecteventTypeName)
          Received indication of the streams and types available before sub-selects are started and expression validation occurs.
 java.lang.String toExpressionString()
          Returns the expression node rendered as a string.
 void validate(ExprValidationContext validationContext)
           
 boolean validated()
           
 
Methods inherited from class com.espertech.esper.epl.expression.ExprNodeBase
addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
 
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.epl.expression.ExprNode
addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
 

Constructor Detail

ExprDeclaredNodeImpl

public ExprDeclaredNodeImpl(ExpressionDeclItem prototype,
                            java.util.List<ExprNode> chainParameters)
Method Detail

getAdditionalNodes

public java.util.List<ExprNode> getAdditionalNodes()
Specified by:
getAdditionalNodes in interface ExprNodeInnerNodeProvider

validated

public boolean validated()
Specified by:
validated in interface ExprDeclaredOrLambdaNode

setSubselectOuterStreamNames

public void setSubselectOuterStreamNames(java.lang.String[] outerStreamNames,
                                         EventType[] outerEventTypesSelect,
                                         java.lang.String[] outerEventTypeNames,
                                         java.lang.String engineURI,
                                         ExprSubselectNode subselect,
                                         java.lang.String subexpressionStreamName,
                                         EventType subselectStreamType,
                                         java.lang.String subselecteventTypeName)
                                  throws ExprValidationException
Received indication of the streams and types available before sub-selects are started and expression validation occurs.

Specified by:
setSubselectOuterStreamNames in interface ExprDeclaredNode
Throws:
ExprValidationException

validate

public void validate(ExprValidationContext validationContext)
              throws ExprValidationException
Specified by:
validate in interface ExprValidator
Throws:
ExprValidationException

getFilterLookupEligible

public boolean getFilterLookupEligible()
Specified by:
getFilterLookupEligible in interface ExprFilterOptimizableNode

getFilterLookupable

public FilterSpecLookupable getFilterLookupable()
Specified by:
getFilterLookupable in interface ExprFilterOptimizableNode

isConstantResult

public boolean isConstantResult()
Description copied from interface: ExprNode
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.

Specified by:
isConstantResult in interface ExprNode
Returns:
true for constant evaluation value, false for non-constant evaluation value

equalsNode

public boolean equalsNode(ExprNode node)
Description copied from interface: ExprNode
Return true if a expression node semantically equals the current node, or false if not.

Concrete implementations should compare the type and any additional information that impact the evaluation of a node.

Specified by:
equalsNode in interface ExprNode
Parameters:
node - to compare to
Returns:
true if semantically equal, or false if not equals

accept

public void accept(ExprNodeVisitor visitor)
Description copied from interface: ExprNode
Accept the visitor. The visitor will first visit the parent then visit all child nodes, then their child nodes.

The visitor can decide to skip child nodes by returning false in isVisit.

Specified by:
accept in interface ExprNode
Overrides:
accept in class ExprNodeBase
Parameters:
visitor - to visit each node and each child node.

accept

public void accept(ExprNodeVisitorWithParent visitor)
Description copied from interface: ExprNode
Accept the visitor. The visitor will first visit the parent then visit all child nodes, then their child nodes.

The visitor can decide to skip child nodes by returning false in isVisit.

Specified by:
accept in interface ExprNode
Overrides:
accept in class ExprNodeBase
Parameters:
visitor - to visit each node and each child node.

acceptChildnodes

public void acceptChildnodes(ExprNodeVisitorWithParent visitor,
                             ExprNode parent)
Description copied from interface: ExprNode
Accept a visitor that receives both parent and child node.

Specified by:
acceptChildnodes in interface ExprNode
Overrides:
acceptChildnodes in class ExprNodeBase
Parameters:
visitor - to apply
parent - node

getExpressionBodyCopy

public ExprNode getExpressionBodyCopy()

getPrototype

public ExpressionDeclItem getPrototype()
Specified by:
getPrototype in interface ExprDeclaredNode

getChainParameters

public java.util.List<ExprNode> getChainParameters()
Specified by:
getChainParameters in interface ExprDeclaredNode

getExprEvaluator

public ExprEvaluator getExprEvaluator()
Specified by:
getExprEvaluator in interface ExprNode

toExpressionString

public java.lang.String toExpressionString()
Description copied from interface: ExprNode
Returns the expression node rendered as a string.

Specified by:
toExpressionString in interface ExprNode
Returns:
string rendering of expression

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com