Method Summary |
|
public int | absOffset() Gets the absolute character offset into the document represented by the reduced model. |
boolean | atEnd() Determines if the cursor is at the end of the reduced model. |
boolean | atStart() Determines if the cursor is at the start of the reduced model. |
public int | balanceBackward() Finds the open brace that matches the previous significant brace iff that brace is an closing brace.
the distance until the matching open brace. |
public int | balanceForward() Finds the closing brace that matches the next significant brace iff that brace is an open brace.
the distance until the matching closing brace. |
public ReducedToken | currentToken() Get the token currently pointed at by the cursor. |
public void | delete(int count) Update the BraceReduction to reflect text deletion.
Parameters: count - indicates the size and direction of text deletion. |
int | getBlockOffset() Gets the offset within the current token. |
public int | getDistToNextNewline() |
public int | getDistToPreviousNewline(int relLoc) Gets distance to end of line on the line previous. |
public Vector<HighlightStatus> | getHighlightStatus(int start, int length) Return all highlight status info for text between the current location and current location + length. |
public IndentInfo | getIndentInformation() |
int | getSize() Gets the size of the current token.
It checks both the brace and comment sub-models to find the size
of the current token. |
int | getSize(ReducedToken rmbToken, ReducedToken rmcToken) |
public ReducedModelState | getStateAtCurrent() Get the shadowing state at the current caret position. |
String | getType() Get a string representation of the current token's type. |
public void | insertChar(char ch) |
public void | move(int count) Updates the BraceReduction to reflect cursor movement. |
public ReducedModelState | moveWalkerGetState(int relDistance) This function returns the state at the relDistance, where relDistance is relative to the last time it was called. |
void | next() Move the reduced model to the next token and update the cursor information. |
public ReducedToken | nextItem() Get the next token. |
void | prev() Move the reduced model to the previous token and update the cursor information. |
public ReducedToken | prevItem() Get the previous token. |
public void | resetLocation() This function resets the location of the walker in the comment list to
where the current cursor is. |
public String | simpleString() A toString() substitute. |