com.espertech.esper.client.soda
Class ForClauseItem

java.lang.Object
  extended by com.espertech.esper.client.soda.ForClauseItem
All Implemented Interfaces:
java.io.Serializable

public class ForClauseItem
extends java.lang.Object
implements java.io.Serializable

An item in a for-clause for controlling delivery of result events to listeners and subscribers.

See Also:
Serialized Form

Constructor Summary
ForClauseItem()
          Ctor.
ForClauseItem(ForClauseKeyword keyword)
          Ctor.
 
Method Summary
static ForClauseItem create(ForClauseKeyword keyword)
          Creates a for-clause with no expressions.
 java.util.List<Expression> getExpressions()
          Returns for-clause expressions.
 ForClauseKeyword getKeyword()
          Returns the for-clause keyword.
 void setExpressions(java.util.List<Expression> expressions)
          Sets for-clause expressions.
 void setKeyword(ForClauseKeyword keyword)
          Sets the for-clause keyword.
 void toEPL(java.io.StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForClauseItem

public ForClauseItem()
Ctor.

Must set a keyword and optionally add expressions.


ForClauseItem

public ForClauseItem(ForClauseKeyword keyword)
Ctor.

Parameters:
keyword - the delivery keyword
Method Detail

create

public static ForClauseItem create(ForClauseKeyword keyword)
Creates a for-clause with no expressions.

Parameters:
keyword - keyword to use
Returns:
for-clause

getKeyword

public ForClauseKeyword getKeyword()
Returns the for-clause keyword.

Returns:
keyword

setKeyword

public void setKeyword(ForClauseKeyword keyword)
Sets the for-clause keyword.

Parameters:
keyword - to set

getExpressions

public java.util.List<Expression> getExpressions()
Returns for-clause expressions.

Returns:
expressions

setExpressions

public void setExpressions(java.util.List<Expression> expressions)
Sets for-clause expressions.

Parameters:
expressions - expressions to set

toEPL

public void toEPL(java.io.StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

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