edu.rice.cs.drjava.model.definitions.reducedmodel
Class InsideBlockComment
java.lang.Object
|
+--edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelState
|
+--edu.rice.cs.drjava.model.definitions.reducedmodel.InsideBlockComment
- All Implemented Interfaces:
- ReducedModelStates
- public class InsideBlockComment
- extends ReducedModelState
Shadowing state that corresponds to being inside a block comment.
- Version:
- $Id: InsideBlockComment.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 InsideBlockComment ONLY
InsideBlockComment
private InsideBlockComment()
update
ReducedModelState update(TokenList.Iterator copyCursor)
- Walk function for inside block comment.
Self-recursive and mutually recursive with other walk functions.
- If we've reached the end of the list, return.
- If we find * /, combine it into a single Brace, and
keep the cursor on that Brace.
- If we find // or /*, split that into two Braces and keep the cursor
on the first one.
- If current brace = * /, mark the current brace as FREE,
go to the next brace, and call updateFree.
Else, mark current brace as INSIDE_BLOCK_COMMENT
and go to next brace and recur.
- Overrides:
update
in class ReducedModelState