com.espertech.esper.epl.expression.dot
Class ExprDotNode

java.lang.Object
  extended by com.espertech.esper.epl.expression.core.ExprNodeBase
      extended by com.espertech.esper.epl.expression.dot.ExprDotNode
All Implemented Interfaces:
ExprNode, ExprNodeInnerNodeProvider, ExprStreamRefNode, ExprValidator, MetaDefItem, java.io.Serializable

public class ExprDotNode
extends ExprNodeBase
implements ExprNodeInnerNodeProvider, ExprStreamRefNode

Represents an Dot-operator expression, for use when "(expression).method(...).method(...)"

See Also:
Serialized Form

Constructor Summary
ExprDotNode(java.util.List<ExprChainedSpec> chainSpec, boolean isDuckTyping, boolean isUDFCache)
           
 
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<ExprChainedSpec> getChainSpec()
           
 java.util.Map<java.lang.String,java.lang.Object> getEventType()
           
 ExprDotNodeFilterAnalyzerDesc getExprDotNodeFilterAnalyzerDesc()
           
 ExprEvaluator getExprEvaluator()
           
 ExprPrecedenceEnum getPrecedence()
          Returns precedence.
 java.lang.String getRootPropertyNameIfAny()
           
 java.lang.Integer getStreamReferencedIfAny()
           
 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 replaceUnlistedChildNode(ExprNode nodeToReplace, ExprNode newNode)
           
 void toPrecedenceFreeEPL(java.io.StringWriter writer)
           
 ExprNode validate(ExprValidationContext validationContext)
           
 
Methods inherited from class com.espertech.esper.epl.expression.core.ExprNodeBase
addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, setChildNode, setChildNodes, toEPL
 
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.core.ExprNode
addChildNode, addChildNodes, getChildNodes, setChildNode, setChildNodes, toEPL
 

Constructor Detail

ExprDotNode

public ExprDotNode(java.util.List<ExprChainedSpec> chainSpec,
                   boolean isDuckTyping,
                   boolean isUDFCache)
Method Detail

getStreamReferencedIfAny

public java.lang.Integer getStreamReferencedIfAny()
Specified by:
getStreamReferencedIfAny in interface ExprStreamRefNode

getRootPropertyNameIfAny

public java.lang.String getRootPropertyNameIfAny()
Specified by:
getRootPropertyNameIfAny in interface ExprStreamRefNode

validate

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

getExprDotNodeFilterAnalyzerDesc

public ExprDotNodeFilterAnalyzerDesc getExprDotNodeFilterAnalyzerDesc()

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

replaceUnlistedChildNode

public void replaceUnlistedChildNode(ExprNode nodeToReplace,
                                     ExprNode newNode)
Specified by:
replaceUnlistedChildNode in interface ExprNode
Overrides:
replaceUnlistedChildNode in class ExprNodeBase

getChainSpec

public java.util.List<ExprChainedSpec> getChainSpec()

getExprEvaluator

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

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

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer)
Specified by:
toPrecedenceFreeEPL in class ExprNodeBase

getPrecedence

public ExprPrecedenceEnum getPrecedence()
Description copied from interface: ExprNode
Returns precedence.

Specified by:
getPrecedence in interface ExprNode
Returns:
precedence

getEventType

public java.util.Map<java.lang.String,java.lang.Object> getEventType()

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

getAdditionalNodes

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

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