public class SentenceMelderState
extends java.lang.Object
All of the state variables have package scope. Classes outside the sentence melder package should treat the state as an opaque object.
Modifier and Type | Field and Description |
---|---|
(package private) int |
doubleQuoteStart
Index of the starting double quote.
|
(package private) java.lang.String |
elementURI
XML element URI.
|
(package private) boolean |
inDoubleQuotes
True if we're in a double quoted portion of the text.
|
(package private) boolean |
inSingleQuotes
True if we're in a single quoted portion of the text.
|
(package private) java.lang.String |
previousWord
Previous word token.
|
(package private) java.lang.StringBuffer |
sb
Holds reconstituted sentence.
|
(package private) int |
singleQuoteStart
Index of the starting single quote.
|
(package private) int |
wordsDone
Remembers the number of words processed so far.
|
(package private) XMLWriter |
xmlWriter
XML writer for XML output.
|
Constructor and Description |
---|
SentenceMelderState()
Create sentence melder state.
|
Modifier and Type | Method and Description |
---|---|
void |
reset()
Reset the melder.
|
boolean inDoubleQuotes
int doubleQuoteStart
int singleQuoteStart
boolean inSingleQuotes
java.lang.String previousWord
int wordsDone
java.lang.StringBuffer sb
XMLWriter xmlWriter
java.lang.String elementURI