Class PatternObserverExpr

java.lang.Object
com.espertech.esper.common.client.soda.EPBaseNamedObject
com.espertech.esper.common.client.soda.PatternObserverExpr
All Implemented Interfaces:
PatternExpr, Serializable

public class PatternObserverExpr extends EPBaseNamedObject implements PatternExpr
Pattern observer expression observes occurances such as timer-at (crontab) and timer-interval.
See Also:
  • Constructor Details

    • PatternObserverExpr

      public PatternObserverExpr()
      Ctor.
    • PatternObserverExpr

      public PatternObserverExpr(String namespace, String name, 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
    • PatternObserverExpr

      public PatternObserverExpr(String namespace, String name, 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
  • Method Details

    • setChildren

      public void setChildren(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
    • getTreeObjectName

      public 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(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
    • getChildren

      public 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
    • getPrecedence

      public PatternExprPrecedenceEnum getPrecedence()
      Description copied from interface: PatternExpr
      Returns the precedence.
      Specified by:
      getPrecedence in interface PatternExpr
      Returns:
      precedence
    • toEPL

      public void toEPL(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(StringWriter writer)
      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