edu.rice.cs.drjava.model.definitions.reducedmodel
Class Free
java.lang.Object
edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
edu.rice.cs.drjava.model.definitions.reducedmodel.Free
public class Free
- extends ReducedModelState
Shadowing state that indicates normal, unshadowed text.
- Version:
- $Id: Free.java 5175 2010-01-20 08:46:32Z mgricken $
|
Constructor Summary |
private |
Free()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONLY
public static final Free ONLY
Free
private Free()
update
ReducedModelState update(TokenList.Iterator copyCursor)
- Walk function for when we're not inside a string or comment. Mutually recursive with other walk functions.
- atEnd: return
- If we find / *, * /, or / /, combine them into a single Brace, and keep the cursor on that Brace.
- If current brace = //, go to next then call updateLineComment.
If current brace = /*, go to next then call updateBlockComment.
If current brace = ", go to next then call updateInsideDoubleQuote.
Else, mark current brace as FREE, go to the next brace, and recur.
- Specified by:
update in class ReducedModelState