com.espertech.esper.epl.expression.funcs
Class ExprPlugInSingleRowNode

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

public class ExprPlugInSingleRowNode
extends ExprNodeBase
implements ExprNodeInnerNodeProvider, ExprFilterOptimizableNode

Represents an invocation of a plug-in single-row function in the expression tree.

See Also:
Serialized Form

Constructor Summary
ExprPlugInSingleRowNode(java.lang.String functionName, java.lang.Class clazz, java.util.List<ExprChainedSpec> chainSpec, EngineImportSingleRowDesc config)
          Ctor.
 
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()
           
 ExprEvaluator getExprEvaluator()
           
 FilterSpecLookupable getFilterLookupable()
           
 boolean getFilterLookupEligible()
           
 java.lang.String getFunctionName()
           
 ExprPrecedenceEnum getPrecedence()
          Returns precedence.
 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
 

Constructor Detail

ExprPlugInSingleRowNode

public ExprPlugInSingleRowNode(java.lang.String functionName,
                               java.lang.Class clazz,
                               java.util.List<ExprChainedSpec> chainSpec,
                               EngineImportSingleRowDesc config)
Ctor.

Parameters:
chainSpec - - the class and name of the method that this node will invoke plus parameters
Method Detail

getExprEvaluator

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

getChainSpec

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

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

getFunctionName

public java.lang.String getFunctionName()

getFilterLookupEligible

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

getFilterLookupable

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

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

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

validate

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

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

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