|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.lang.cacheBuilder.DefaultWordsScanner
public class DefaultWordsScanner
The default implementation of a words scanner based on a custom language lexer.
| Constructor Summary | |
|---|---|
DefaultWordsScanner(Lexer lexer,
TokenSet identifierTokenSet,
TokenSet commentTokenSet,
TokenSet literalTokenSet)
Creates a new instance of the words scanner. |
|
| 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 |
|---|
public DefaultWordsScanner(Lexer lexer,
TokenSet identifierTokenSet,
TokenSet commentTokenSet,
TokenSet literalTokenSet)
lexer - the lexer used for breaking the text into tokens.identifierTokenSet - the set of token types which represent identifiers.commentTokenSet - the set of token types which represent comments.literalTokenSet - the set of token types which represent literals.| Method Detail |
|---|
public void processWords(java.lang.CharSequence fileText,
Processor<WordOccurrence> processor)
WordsScanner
processWords in interface WordsScannerfileText - the text to break into words.processor - the processor which accepts the words in the text.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||