Class ModuleItem

java.lang.Object
com.espertech.esper.common.client.module.ModuleItem
All Implemented Interfaces:
Serializable

public class ModuleItem extends Object implements Serializable
Represents an EPL statement as part of a Module.

Character position start and end are only available for non-comment only.

See Also:
  • Constructor Details

    • ModuleItem

      public ModuleItem(String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd, int lineNumberEnd, int lineNumberContent, int lineNumberContentEnd)
      Ctor.
      Parameters:
      expression - EPL
      commentOnly - true if the statement consists only of comments or whitespace
      lineNumber - line number
      charPosStart - character position of start of segment
      charPosEnd - character position of end of segment
      lineNumberEnd - line number of the line that ends the statement
      lineNumberContent - line number of the line that starts the statement excluding comments, or -1 if comments-only
      lineNumberContentEnd - line number of the line that ends the statement excluding comments, or -1 if comments-only
    • ModuleItem

      public ModuleItem(String expression)
      Ctor.
      Parameters:
      expression - expression
    • ModuleItem

      public ModuleItem(EPStatementObjectModel model)
      Ctor.
      Parameters:
      model - statement object model
  • Method Details

    • getExpression

      public String getExpression()
      Returns the EPL.
      Returns:
      expression
    • setExpression

      public void setExpression(String expression)
      Sets the EPL.
      Parameters:
      expression - to set
    • isCommentOnly

      public boolean isCommentOnly()
      Returns true to indicate comments-only expression.
      Returns:
      comments-only indicator
    • setCommentOnly

      public void setCommentOnly(boolean commentOnly)
      Set true to indicate comments-only expression.
      Parameters:
      commentOnly - comments-only indicator
    • getLineNumber

      public int getLineNumber()
      Returns the line number of item.
      Returns:
      item line num
    • setLineNumber

      public void setLineNumber(int lineNumber)
      Sets item line num
      Parameters:
      lineNumber - to set
    • getLineNumberEnd

      public int getLineNumberEnd()
      Returns the line number of item that ends the item.
      Returns:
      item line num end
    • setLineNumberEnd

      public void setLineNumberEnd(int lineNumberEnd)
      Sets item line num end
      Parameters:
      lineNumberEnd - to set
    • getCharPosStart

      public int getCharPosStart()
      Returns item char position in line.
      Returns:
      char position
    • setCharPosStart

      public void setCharPosStart(int charPosStart)
      Sets item char position in line.
      Parameters:
      charPosStart - char position
    • getCharPosEnd

      public int getCharPosEnd()
      Returns end position of character on line for the item.
      Returns:
      position
    • setCharPosEnd

      public void setCharPosEnd(int charPosEnd)
      Sets the end position of character on line for the item.
      Parameters:
      charPosEnd - position
    • getModel

      public EPStatementObjectModel getModel()
      Returns the statement object model when provided
      Returns:
      model
    • getLineNumberContent

      public int getLineNumberContent()
      Returns the line number of item content excluding comments, or -1 if comments-only
      Returns:
      item line num content start
    • setLineNumberContent

      public void setLineNumberContent(int lineNumberContent)
      Sets the line number of item content excluding comments, or -1 if comments-only
      Parameters:
      lineNumberContent - item line num content start
    • getLineNumberContentEnd

      public int getLineNumberContentEnd()
      Returns the line number of item content end excluding comments, or -1 if comments-only
      Returns:
      item line num content end
    • setLineNumberContentEnd

      public void setLineNumberContentEnd(int lineNumberContentEnd)
      Sets the line number of item content end excluding comments, or -1 if comments-only
      Parameters:
      lineNumberContentEnd - item line num content end