public class ModuleItem extends Object implements Serializable
Module
.
Character position start and end are only available for non-comment only.
Constructor and Description |
---|
ModuleItem(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.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharPosEnd()
Returns end position of character on line for the item.
|
int |
getCharPosStart()
Returns item char position in line.
|
String |
getExpression()
Returns the EPL.
|
int |
getLineNumber()
Returns the line number of item.
|
int |
getLineNumberContent()
Returns the line number of item content excluding comments, or -1 if comments-only
|
int |
getLineNumberContentEnd()
Returns the line number of item content end excluding comments, or -1 if comments-only
|
int |
getLineNumberEnd()
Returns the line number of item that ends the item.
|
EPStatementObjectModel |
getModel()
Returns the statement object model when provided
|
boolean |
isCommentOnly()
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 num
|
void |
setLineNumberContent(int lineNumberContent)
Sets the line number of item content excluding comments, or -1 if comments-only
|
void |
setLineNumberContentEnd(int lineNumberContentEnd)
Sets the line number of item content end excluding comments, or -1 if comments-only
|
void |
setLineNumberEnd(int lineNumberEnd)
Sets item line num end
|
public ModuleItem(String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd, int lineNumberEnd, int lineNumberContent, int lineNumberContentEnd)
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-onlypublic ModuleItem(String expression)
expression
- expressionpublic ModuleItem(EPStatementObjectModel model)
model
- statement object modelpublic String getExpression()
public void setExpression(String expression)
expression
- to setpublic boolean isCommentOnly()
public void setCommentOnly(boolean commentOnly)
commentOnly
- comments-only indicatorpublic int getLineNumber()
public void setLineNumber(int lineNumber)
lineNumber
- to setpublic int getLineNumberEnd()
public void setLineNumberEnd(int lineNumberEnd)
lineNumberEnd
- to setpublic int getCharPosStart()
public void setCharPosStart(int charPosStart)
charPosStart
- char positionpublic int getCharPosEnd()
public void setCharPosEnd(int charPosEnd)
charPosEnd
- positionpublic EPStatementObjectModel getModel()
public int getLineNumberContent()
public void setLineNumberContent(int lineNumberContent)
lineNumberContent
- item line num content startpublic int getLineNumberContentEnd()
public void setLineNumberContentEnd(int lineNumberContentEnd)
lineNumberContentEnd
- item line num content endCopyright © 2005–2021. All rights reserved.