com.espertech.esper.client.soda
Class PatternGuardExpr

java.lang.Object
  extended by com.espertech.esper.client.soda.EPBaseNamedObject
      extended by com.espertech.esper.client.soda.PatternGuardExpr
All Implemented Interfaces:
PatternExpr, java.io.Serializable

public class PatternGuardExpr
extends EPBaseNamedObject
implements PatternExpr

Guard is the where timer-within pattern object for use in pattern expressions.

See Also:
Serialized Form

Constructor Summary
PatternGuardExpr(java.lang.String namespace, java.lang.String name, Expression[] parameters, PatternExpr guarded)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternGuardExpr(java.lang.String namespace, java.lang.String name, java.util.List<Expression> parameters)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternGuardExpr(java.lang.String namespace, java.lang.String name, java.util.List<Expression> parameters, PatternExpr guardedPattern)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
 
Method Summary
 java.util.List<PatternExpr> getChildren()
          Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.
 java.util.List<PatternExpr> getGuarded()
          Get sub expression
 PatternExprPrecedenceEnum getPrecedence()
          Returns the precedence.
 java.lang.String getTreeObjectName()
          Returns the id for the pattern expression, for use by tools.
 void setChildren(java.util.List<PatternExpr> children)
          Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.
 void setGuarded(java.util.List<PatternExpr> guarded)
          Set sub pattern.
 void setTreeObjectName(java.lang.String treeObjectName)
          Sets and id for the pattern expression, for use by tools.
 void toEPL(java.io.StringWriter writer, PatternExprPrecedenceEnum parentPrecedence, EPStatementFormatter formatter)
          Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.
 void toPrecedenceFreeEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          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.EPBaseNamedObject
getName, getNamespace, getParameters, setName, setNamespace, setParameters, toEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternGuardExpr

public PatternGuardExpr(java.lang.String namespace,
                        java.lang.String name,
                        java.util.List<Expression> parameters)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters

PatternGuardExpr

public PatternGuardExpr(java.lang.String namespace,
                        java.lang.String name,
                        Expression[] parameters,
                        PatternExpr guarded)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters
guarded - is the guarded pattern expression

PatternGuardExpr

public PatternGuardExpr(java.lang.String namespace,
                        java.lang.String name,
                        java.util.List<Expression> parameters,
                        PatternExpr guardedPattern)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters
guardedPattern - is the guarded pattern expression
Method Detail

getChildren

public java.util.List<PatternExpr> getChildren()
Description copied from interface: PatternExpr
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.

Specified by:
getChildren in interface PatternExpr
Returns:
pattern child expressions or empty list if there are no child expressions

setGuarded

public void setGuarded(java.util.List<PatternExpr> guarded)
Set sub pattern.

Parameters:
guarded - sub expression

getGuarded

public java.util.List<PatternExpr> getGuarded()
Get sub expression

Returns:
sub pattern

getTreeObjectName

public java.lang.String getTreeObjectName()
Description copied from interface: PatternExpr
Returns the id for the pattern expression, for use by tools.

Specified by:
getTreeObjectName in interface PatternExpr
Returns:
id

setTreeObjectName

public void setTreeObjectName(java.lang.String treeObjectName)
Description copied from interface: PatternExpr
Sets and id for the pattern expression, for use by tools.

Specified by:
setTreeObjectName in interface PatternExpr
Parameters:
treeObjectName - id

getPrecedence

public PatternExprPrecedenceEnum getPrecedence()
Description copied from interface: PatternExpr
Returns the precedence.

Specified by:
getPrecedence in interface PatternExpr
Returns:
precedence

toEPL

public final void toEPL(java.io.StringWriter writer,
                        PatternExprPrecedenceEnum parentPrecedence,
                        EPStatementFormatter formatter)
Description copied from interface: PatternExpr
Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.

Specified by:
toEPL in interface PatternExpr
Parameters:
writer - is the output to use
parentPrecedence - precedence
formatter - formatter

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer,
                                EPStatementFormatter formatter)
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Parameters:
writer - is the output to use
formatter - for newline-whitespace formatting

setChildren

public void setChildren(java.util.List<PatternExpr> children)
Description copied from interface: PatternExpr
Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.

Specified by:
setChildren in interface PatternExpr
Parameters:
children - pattern child expressions or empty list if there are no child expressions

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