com.espertech.esper.client.soda
Interface PatternExpr

All Superinterfaces:
Serializable
All Known Implementing Classes:
PatternAndExpr, PatternEveryExpr, PatternExprBase, PatternFilterExpr, PatternFollowedByExpr, PatternGuardExpr, PatternNotExpr, PatternObserverExpr, PatternOrExpr

public interface PatternExpr
extends Serializable

Interface representing a pattern expression.

Pattern expressions are organized into a tree-like structure with nodes representing sub-expressions (composite).

Certain types of nodes have certain requirements towards the number or types of nodes that are expected as pattern sub-expressions to an pattern expression.


Method Summary
 List<PatternExpr> getChildren()
          Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.
 void toEPL(StringWriter writer)
          Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.
 

Method Detail

getChildren

List<PatternExpr> getChildren()
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.

Returns:
pattern child expressions or empty list if there are no child expressions

toEPL

void toEPL(StringWriter writer)
Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.

Parameters:
writer - is the output to use

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com