|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.lang.cacheBuilder.WordOccurrence
public class WordOccurrence
A single word instance extracted by WordsScanner.
| Nested Class Summary | |
|---|---|
static class |
WordOccurrence.Kind
Defines possible locations where words can be encountered. |
| Constructor Summary | |
|---|---|
WordOccurrence(java.lang.CharSequence text,
WordOccurrence.Kind kind)
Creates a new occurrence with the specified text and kind. |
|
| Method Summary | |
|---|---|
WordOccurrence.Kind |
getKind()
Returns the type of text where the word was encountered (code, comments or literals). |
java.lang.CharSequence |
getText()
Returns the text of the occurred word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WordOccurrence(java.lang.CharSequence text,
@Nullable
WordOccurrence.Kind kind)
text - The text of the word.kind - The type of text where the word was encountered (code, comments or literals).| Method Detail |
|---|
@Nullable public WordOccurrence.Kind getKind()
public java.lang.CharSequence getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||