code: void     flagLookAheadStates() {
             List<RBBINode> lookAheadNodes = new ArrayList<RBBINode>();
             RBBINode    lookAheadNode;
             int     i;
             int     n;
  
             fRB.fTreeRoots[fRootIx].findNodes(lookAheadNodes, RBBINode.lookAhead);
             for (i=0; i<lookAheadNodes.size(); i++) {
                 lookAheadNode = lookAheadNodes.get(i);
  
                 for (n=0; n<fDStates.size(); n++) {
                     RBBIStateDescriptor sd = fDStates.get(n);
                     if (sd.fPositions.contains(lookAheadNode)) {
                         sd.fLookAhead = lookAheadNode.fVal;
                     }
                 }
             }
         }
docs: -----------------------------------------------------------------------------