Class ModuleItem
java.lang.Object
com.espertech.esper.common.client.module.ModuleItem
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionModuleItem
(EPStatementObjectModel model) Ctor.ModuleItem
(String expression) Ctor.ModuleItem
(String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd, int lineNumberEnd, int lineNumberContent, int lineNumberContentEnd) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns end position of character on line for the item.int
Returns item char position in line.Returns the EPL.int
Returns the line number of item.int
Returns the line number of item content excluding comments, or -1 if comments-onlyint
Returns the line number of item content end excluding comments, or -1 if comments-onlyint
Returns the line number of item that ends the item.getModel()
Returns the statement object model when providedboolean
Returns true to indicate comments-only expression.void
setCharPosEnd
(int charPosEnd) Sets the end position of character on line for the item.void
setCharPosStart
(int charPosStart) Sets item char position in line.void
setCommentOnly
(boolean commentOnly) Set true to indicate comments-only expression.void
setExpression
(String expression) Sets the EPL.void
setLineNumber
(int lineNumber) Sets item line numvoid
setLineNumberContent
(int lineNumberContent) Sets the line number of item content excluding comments, or -1 if comments-onlyvoid
setLineNumberContentEnd
(int lineNumberContentEnd) Sets the line number of item content end excluding comments, or -1 if comments-onlyvoid
setLineNumberEnd
(int lineNumberEnd) Sets item line num end
-
Constructor Details
-
ModuleItem
public ModuleItem(String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd, int lineNumberEnd, int lineNumberContent, int lineNumberContentEnd) Ctor.- Parameters:
expression
- EPLcommentOnly
- true if the statement consists only of comments or whitespacelineNumber
- line numbercharPosStart
- character position of start of segmentcharPosEnd
- character position of end of segmentlineNumberEnd
- line number of the line that ends the statementlineNumberContent
- line number of the line that starts the statement excluding comments, or -1 if comments-onlylineNumberContentEnd
- line number of the line that ends the statement excluding comments, or -1 if comments-only
-
ModuleItem
Ctor.- Parameters:
expression
- expression
-
ModuleItem
Ctor.- Parameters:
model
- statement object model
-
-
Method Details
-
getExpression
Returns the EPL.- Returns:
- expression
-
setExpression
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
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
-