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
- All Implemented Interfaces:
- ReducedModelStates
- public class InsideLineComment
- extends ReducedModelState
Shadowing state that corresponds to being inside a line comment.
- Version:
- $Id: InsideLineComment.java,v 1.7 2002/02/08 14:22:21 brianstoler Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ONLY
public static final InsideLineComment ONLY
InsideLineComment
private InsideLineComment()
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.
The cursor will be on the first of the two new braces.
- If current brace = \n, mark current brace FREE, next(), and
go to updateFree.
Else, mark current brace as LINE_COMMENT, goto next, and recur.
- Overrides:
update
in class ReducedModelState