public class ProcessingContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TokenItem |
currentItem
The current token item is the one from the top of the processing stack.
|
protected boolean |
doUpdate
Condition for update operation to start.
|
protected int |
endLine
The line where the change ends.
|
protected TokenItem |
previousItem
Keep the previous item as we need it is some cases
and is less expensive to just keep and update it than
computing it when we need it.
|
protected int |
startLine
The line where the change begins.
|
Constructor and Description |
---|
ProcessingContext() |
Modifier and Type | Method and Description |
---|---|
TokenItem |
getCurrentItem() |
boolean |
getDoUpdate()
It is a flag that indicates that structural changes are reflected into
an update event in the listeners.
|
int |
getEndLine() |
TokenItem |
getPreviousItem() |
int |
getStartLine() |
void |
increaseEndLine()
Increase teh end line.
|
void |
setCurrentItem(TokenItem currentItem) |
void |
setDoUpdate(boolean val) |
void |
setEndLine(int endLine) |
void |
setPreviousItem(TokenItem previousItem)
Set the previous item.
|
void |
setStartLine(int startLine) |
protected TokenItem currentItem
protected TokenItem previousItem
protected int startLine
protected int endLine
protected boolean doUpdate
public void setDoUpdate(boolean val)
val
- is the new value for noUpdatepublic boolean getDoUpdate()
public TokenItem getCurrentItem()
public TokenItem getPreviousItem()
public void setCurrentItem(TokenItem currentItem)
currentItem
- The currentItem to set.public void setPreviousItem(TokenItem previousItem)
previousItem
- the previousItem to set.public int getEndLine()
public void setEndLine(int endLine)
endLine
- The endLine to set. 0 based.public int getStartLine()
public void setStartLine(int startLine)
startLine
- The startLine to set. 0 basedpublic void increaseEndLine()
© Copyright Syncro Soft SRL 2002 - 2014.