Keeps track of newlines, comment blocks, and single and double-quoted strings. This reduced sub-model is used for
coloring purposes. Given the information contained here, the DefinitionsEditorKit can paint strings, comments, and
regular code in different colors. DefinitionsEditorKit colors keywords by directly reading DefinitionsDocument,
the "full-scale" model.
version: $Id: ReducedModelComment.java 4255 2007-08-28 19:17:37Z mgricken $
getDistToCurrentBraceNewline(IndentInfo braceInfo) Computes the distance to the beginning of the line containing the brace enclosing
the current location.
Update the BraceReduction to reflect text deletion.
Parameters: count - indicates the size and direction of text deletion.Negative values delete text to the left of the cursor, positive values delete text to the right.Always move count spaces to make sure we can delete.
Computes the distance to the beginning of the line containing the brace enclosing
the current location. Stores this info in the IndentInfo field distToNewlineCurrent.
Inserts a gap between the characters in a multiple character brace. This function is called by
AbstractReducedModel's method insertGap when a Gap is inserted between the characters in a comment brace or an
escape sequence. It splits up the multiple character brace into its component parts and inserts a Gap of size
length in between the resulting split parts.
Parameters: length - the size of the Gap to be inserted in characters
current = multiple char brace? move next once
current = single char brace? move next twice
We moved two previous, but if the broken part combined with
the insert, there's only one brace where once were two.
Updates the BraceReduction to reflect cursor movement. Negative values move left from the cursor, positive values
move right.
Parameters: count - indicates the direction and magnitude of cursor movement
Returns the state at the relLocation, where relLocation is the location relative to the walker
Parameters: relLocation - distance from walker to get state at.