public class ModuleItem extends Object implements Serializable
Module
.
Character position start and end are only available for non-comment only.
Constructor and Description |
---|
ModuleItem(String expression,
boolean commentOnly,
int lineNumber,
int charPosStart,
int charPosEnd)
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.
|
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
|
public ModuleItem(String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd)
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 segmentpublic 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 getCharPosStart()
public void setCharPosStart(int charPosStart)
charPosStart
- char positionpublic int getCharPosEnd()
public void setCharPosEnd(int charPosEnd)
charPosEnd
- position