| java.lang.Object edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
All known Subclasses: edu.rice.cs.drjava.model.definitions.reducedmodel.Stutter, edu.rice.cs.drjava.model.definitions.reducedmodel.InsideSingleQuote, edu.rice.cs.drjava.model.definitions.reducedmodel.InsideBlockComment, edu.rice.cs.drjava.model.definitions.reducedmodel.InsideLineComment, edu.rice.cs.drjava.model.definitions.reducedmodel.InsideDoubleQuote, edu.rice.cs.drjava.model.definitions.reducedmodel.Free,
ReducedModelState | abstract public class ReducedModelState implements ReducedModelStates(Code) | | The abstract notion of a shadowing state. We use shadowing to mean
the state of text as it is interpreted during compile. Commented text
is ignored, and quoted text does not factor into the ASTs generated
by the compiler except as a text constant. This buys us a lot in
terms of correctness when highlighting, indenting, and performing
other editor functions.
version: $Id: ReducedModelState.java 4255 2007-08-28 19:17:37Z mgricken $ |
_combineCurrentAndNextIfFind | boolean _combineCurrentAndNextIfFind(String first, String second, TokenList.Iterator copyCursor)(Code) | | Combines the current and next braces if they match the given types.
If we have braces of first and second in immediate succession, and if
second's gap is 0, combine them into first+second.
The cursor remains on the same block after this method is called.
Parameters: first - the first half of a multiple char brace Parameters: second - the second half of a multiple char brace true if we combined two braces or false if not |
|
|