Method Summary |
|
protected void | _augmentCurrentGap(int length) Assuming there is a gap to the right, this function increases the size of that gap. |
protected void | _augmentGapToLeft(int length) Assuming there is a gap to the left, this function increases the size of that gap. |
protected boolean | _gapToLeft() Determines if there is a gap immediately to the left of the cursor. |
protected boolean | _gapToRight() Determines if there is a Gap immediately to the right of the cursor. |
public void | _insertGap(int length) Inserts a block of text into the reduced model which has no
special consideration in the reduced model. |
protected void | _insertNewGap(int length) Helper function for _insertGap. |
int | absOffset() Package private absolute offset for tests. |
protected ReducedToken | current() Get the ReducedToken currently pointed at by the cursor. |
int | getBlockOffset() Get the offset into the current ReducedToken. |
protected ReducedModelState | getStateAtCurrent() Wrapper for TokenList.Iterator.getStateAtCurrent that returns the current
state for some iterator. |
abstract public void | insertChar(char ch) Inserts a character into the reduced model. |
abstract protected void | insertGapBetweenMultiCharBrace(int length) Inserts a gap between a multiple character brace.
Because ReducedModelBrace does not keep track of multiple character
braces, only (),{}, and [], it differed in its implementation of
inserGap(int) from ReducedModelComment's. |
public TokenList.Iterator | makeCopyCursor() Make a copy of the token list's iterator. |
abstract protected ReducedModelState | moveWalkerGetState(int relLocation) |
protected void | next() Move to the token immediately right. |
protected void | prev() Move to the token immediately left.
This function forwards its responsibilities to the TokenList
iterator. |
abstract protected void | resetWalkerLocationToCursor() Resets the walker to the current position in document. |
void | setBlockOffset(int offset) Change the offset into the current ReducedToken. |
public String | simpleString() A toString() replacement for testing - easier to read. |