|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.parser.GenericReader org.alicebot.server.core.targeting.TargetsReader
public class TargetsReader
Reads a targets data file.
This version is based on AIMLReader
.
Obviously this and its companion TargetsReaderListener
duplicate a lot from AIMLReader and AIMLLoader,
so once this is stabilized these should all be combined.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.alicebot.server.core.parser.GenericReader |
---|
GenericReader.TransitionMade |
Field Summary | |
---|---|
java.lang.String |
inputText
The most recently collected input text contents. |
java.lang.String |
inputThat
The most recently collected input <that></that> contents. |
java.lang.String |
inputTopic
The most recently collected input <topic></topic> contents. |
java.lang.String |
matchPattern
The most recently collected match <pattern></pattern> contents. |
java.lang.String |
matchTemplate
The most recently collected match <template></template> contents. |
java.lang.String |
matchThat
The most recently collected match <that></that> contents. |
java.lang.String |
matchTopic
The most recently collected match <topic></topic> contents. |
java.lang.reflect.Field |
patternField
A reference to some pattern/text field. |
java.lang.String |
reply
The most recently collected <reply></reply> contents. |
java.lang.reflect.Field |
templateField
A reference to some template/reply field. |
java.lang.reflect.Field |
thatField
A reference to some that field. |
java.lang.reflect.Field |
topicField
A reference to some topic field. |
Fields inherited from class org.alicebot.server.core.parser.GenericReader |
---|
ASTERISK, buffer, bufferStartCapacity, bufferString, buffReader, byteCount, COLON, COMMENT_MARK, done, EMPTY_STRING, encoding, fileName, LINE_SEPARATOR, lineNumber, listener, MARKER_END, MARKER_START, QUOTE_MARK, readerInstance, searching, searchStart, SLASH, SPACE, state, tagLength, tagStart, TRANSITION_MADE |
Constructor Summary | |
---|---|
TargetsReader(java.lang.String fileName,
java.io.BufferedReader buffReader,
TargetsReaderListener targetsListener,
java.lang.String encoding,
long length,
java.awt.Component parent)
Initializes a TargetsReader with a parent component,
indicating that a ProgressMonitor should be created
and updated for that component. |
Method Summary | |
---|---|
void |
closeMonitor()
Closes the progress monitor (if it is in use). |
protected void |
initialize()
|
void |
run()
|
protected void |
tryStates()
|
Methods inherited from class org.alicebot.server.core.parser.GenericReader |
---|
read, succeed, transition, transition, transition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String matchPattern
public java.lang.String matchThat
public java.lang.String matchTopic
public java.lang.String matchTemplate
public java.lang.String inputText
public java.lang.String inputThat
public java.lang.String inputTopic
public java.lang.String reply
public java.lang.reflect.Field patternField
public java.lang.reflect.Field thatField
public java.lang.reflect.Field topicField
public java.lang.reflect.Field templateField
Constructor Detail |
---|
public TargetsReader(java.lang.String fileName, java.io.BufferedReader buffReader, TargetsReaderListener targetsListener, java.lang.String encoding, long length, java.awt.Component parent)
TargetsReader
with a parent component,
indicating that a ProgressMonitor
should be created
and updated for that component.
parent
- the parent componentlength
- the length of the file to be readMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
protected void initialize()
initialize
in class GenericReader
protected void tryStates() throws GenericReader.TransitionMade
tryStates
in class GenericReader
GenericReader.TransitionMade
public void closeMonitor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |