com.espertech.esper.client.deploy
Class ModuleItem

java.lang.Object
  extended by com.espertech.esper.client.deploy.ModuleItem
All Implemented Interfaces:
java.io.Serializable

public class ModuleItem
extends java.lang.Object
implements java.io.Serializable

Represents an EPL statement as part of a Module.

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

See Also:
Serialized Form

Constructor Summary
ModuleItem(java.lang.String expression, boolean commentOnly, int lineNumber, int charPosStart, int charPosEnd)
          Ctor.
 
Method Summary
 int getCharPosEnd()
          Returns end position of character on line for the item.
 int getCharPosStart()
          Returns item char position in line.
 java.lang.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(java.lang.String expression)
          Sets the EPL.
 void setLineNumber(int lineNumber)
          Sets item line num
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleItem

public ModuleItem(java.lang.String expression,
                  boolean commentOnly,
                  int lineNumber,
                  int charPosStart,
                  int charPosEnd)
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
Method Detail

getExpression

public java.lang.String getExpression()
Returns the EPL.

Returns:
expression

setExpression

public void setExpression(java.lang.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

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com