com.espertech.esper.client.soda
Class SingleRowMethodExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.SingleRowMethodExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class SingleRowMethodExpression
extends ExpressionBase

Generic single-row method call consists of a method name and parameters, possibly chained.

See Also:
Serialized Form

Constructor Summary
SingleRowMethodExpression(java.util.List<DotExpressionItem> chain)
          Ctor.
SingleRowMethodExpression(java.lang.String method, java.lang.Object[] parameters)
          Ctor.
 
Method Summary
 java.util.List<DotExpressionItem> getChain()
          Returns the optional method invocation chain for the single-row method consisting of pairs of method name and list of parameters.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 void toPrecedenceFreeEPL(java.io.StringWriter writer)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRowMethodExpression

public SingleRowMethodExpression(java.lang.String method,
                                 java.lang.Object[] parameters)
Ctor.

Parameters:
method - method name
parameters - an optiona array of parameters

SingleRowMethodExpression

public SingleRowMethodExpression(java.util.List<DotExpressionItem> chain)
Ctor.

Parameters:
chain - of method invocations with at least one element, each pair a method name and list of parameter expressions
Method Detail

getChain

public java.util.List<DotExpressionItem> getChain()
Returns the optional method invocation chain for the single-row method consisting of pairs of method name and list of parameters.

Returns:
chain of method invocations

getPrecedence

public ExpressionPrecedenceEnum getPrecedence()
Description copied from interface: Expression
Returns precedence.

Returns:
precedence

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer)
Description copied from class: ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Specified by:
toPrecedenceFreeEPL in class ExpressionBase
Parameters:
writer - is the output to use

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