public final class TextDocumentStatistics
extends java.lang.Object
| Constructor and Description |
|---|
TextDocumentStatistics(TextDocument doc,
boolean contentOnly)
Computes statistics on a given
TextDocument. |
| Modifier and Type | Method and Description |
|---|---|
float |
avgNumWords()
Returns the average number of words at block-level (= overall number of words divided by
the number of blocks).
|
int |
getNumWords()
Returns the overall number of words in all blocks.
|
public TextDocumentStatistics(TextDocument doc, boolean contentOnly)
TextDocument.doc - The TextDocument.contentOnly - if true then o