edu.rice.cs.drjava.model.definitions.reducedmodel
Class InsideSingleQuote
java.lang.Object
edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
edu.rice.cs.drjava.model.definitions.reducedmodel.InsideSingleQuote
public class InsideSingleQuote
- extends ReducedModelState
The shadowing state that corresponds to being between single quotes.
- Version:
- $Id: InsideSingleQuote.java 5175 2010-01-20 08:46:32Z mgricken $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONLY
public static final InsideSingleQuote ONLY
- Singleton instance.
InsideSingleQuote
private InsideSingleQuote()
- Singleton constructor.
update
ReducedModelState update(TokenList.Iterator copyCursor)
- Walk function for when inside single quotes.
- If we've reached the end of the list, return.
- If we find //, /* or * /, split them into two separate braces.
The cursor will be on the first of the two new braces.
- If current brace = \n or ', mark current brace FREE, next(), and
go to updateFree.
Else, mark current brace as INSIDE_SINGLE_QUOTE, go to next brace, recur.
- Specified by:
update in class ReducedModelState