com.espertech.esper.client.soda
Class DotExpression

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

public class DotExpression
extends ExpressionBase

Dot-expresson is for use in "(inner_expression).dot_expression".

See Also:
Serialized Form

Constructor Summary
DotExpression()
          Ctor.
DotExpression(Expression innerExpression)
          Ctor.
 
Method Summary
 void add(java.lang.String methodName, java.util.List<Expression> parameters)
          Add a method to the chain of methods after the dot.
 void add(java.lang.String methodName, java.util.List<Expression> parameters, boolean isProperty)
          Add a method to the chain of methods after the dot, indicating the this segment is a property and does not need parenthesis and won't have paramaters.
 java.util.List<DotExpressionItem> getChain()
          Returns the method chain of all methods after the dot.
 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

DotExpression

public DotExpression()
Ctor.


DotExpression

public DotExpression(Expression innerExpression)
Ctor.

Parameters:
innerExpression - the expression in parenthesis
Method Detail

add

public void add(java.lang.String methodName,
                java.util.List<Expression> parameters)
Add a method to the chain of methods after the dot.

Parameters:
methodName - to add
parameters - parameters to method

add

public void add(java.lang.String methodName,
                java.util.List<Expression> parameters,
                boolean isProperty)
Add a method to the chain of methods after the dot, indicating the this segment is a property and does not need parenthesis and won't have paramaters.

Parameters:
methodName - method name
parameters - parameter expressions
isProperty - property flag

getChain

public java.util.List<DotExpressionItem> getChain()
Returns the method chain of all methods after the dot.

Returns:
method name ane list of parameters

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