com.intellij.lang.cacheBuilder
Class SimpleWordsScanner

java.lang.Object
  extended by com.intellij.lang.cacheBuilder.SimpleWordsScanner
All Implemented Interfaces:
WordsScanner

public class SimpleWordsScanner
extends java.lang.Object
implements WordsScanner

The default primitive implementation of a words scanner. The implementation does not use any lexer, breaks text into words at boundaries of sequences of English letters and treats all words as occurred in unknown context.


Constructor Summary
SimpleWordsScanner()
           
 
Method Summary
 void processWords(java.lang.CharSequence fileText, Processor<WordOccurrence> processor)
          Processes the specified text fragment and passes every word in the text to the specified processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleWordsScanner

public SimpleWordsScanner()
Method Detail

processWords

public void processWords(java.lang.CharSequence fileText,
                         Processor<WordOccurrence> processor)
Description copied from interface: WordsScanner
Processes the specified text fragment and passes every word in the text to the specified processor.

Specified by:
processWords in interface WordsScanner
Parameters:
fileText - the text to break into words.
processor - the processor which accepts the words in the text.