edu.rice.cs.drjava.model.definitions.reducedmodel
Class InsideLineComment
java.lang.Object
edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
edu.rice.cs.drjava.model.definitions.reducedmodel.InsideLineComment
public class InsideLineComment
- extends ReducedModelState
The shadowing state that corresponds to being inside a line comment.
- Version:
- $Id: InsideLineComment.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 InsideLineComment ONLY
- Singleton instance
InsideLineComment
private InsideLineComment()
- Singleton constructor
update
ReducedModelState update(TokenList.Iterator copyCursor)
- Walk function for inside line comment.
- If we've reached the end of the list, return.
- If we find //, /* or * /, split them into two separate braces and place cursor on the first one.
- If current brace = \n, mark current brace FREE, next(), and go to updateFree.
Else, mark current brace as LINE_COMMENT, goto next, and recur.
- Specified by:
update in class ReducedModelState