edu.rice.cs.drjava.model.definitions.reducedmodel
Class Free

java.lang.Object
  extended by edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
      extended by 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 $

Field Summary
static Free ONLY
           
 
Constructor Summary
private Free()
           
 
Method Summary
(package private)  ReducedModelState update(TokenList.Iterator copyCursor)
          Walk function for when we're not inside a string or comment.
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
_combineCurrentAndNextIfEscape, _combineCurrentAndNextIfFind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY

public static final Free ONLY
Constructor Detail

Free

private Free()
Method Detail

update

ReducedModelState update(TokenList.Iterator copyCursor)
Walk function for when we're not inside a string or comment. Mutually recursive with other walk functions.
  1. atEnd: return
  2. If we find / *, * /, or / /, combine them into a single Brace, and keep the cursor on that Brace.
  3. 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