|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.call.modules.Module
autohit.call.modules.TextReaderModule
Text reader module. It'll supply lines or tokens out of a text source. The source can be a String or a Universe object. If you start a new session over an old one, it will throw a fault. You must call done() first.
startstring(string) start a read on a target string
startuni(objname) start a read on a universe object
line() get the next full line. if reading tokens in a line, it will
give the whole contents of the current line.
token() get the next whitespace delimited token. if there are no more
tokens in the current line, it will eat lines until it finds one.
hasmore() return "true" if there are more tokens and/or lines, else false.
done() close read (do this for either type, please)
EPG - Initial - 7Jul03
Field Summary |
Fields inherited from class autohit.call.modules.Module |
myName, visCore, visLogger, visSC, visUniverse |
Constructor Summary | |
TextReaderModule()
Constructor |
Method Summary | |
java.lang.Object |
execute_chain(java.lang.String name)
Execute a named method. |
protected void |
free_chain()
Allow the subclass a chance to cleanup on free. |
protected java.lang.String |
instantiation_chain()
Allow the subclass a chance to initialize. |
Methods inherited from class autohit.call.modules.Module |
buildException, buildException, debug, desired, desiredType, error, errorparam, execute, fault, fault, free, getParam, getPersist, instance, isDebugging, log, optional, optionalType, required, requiredType, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextReaderModule()
Method Detail |
public java.lang.Object execute_chain(java.lang.String name) throws CallException
execute_chain
in class Module
name
- name of the method
CallException
NOPair
protected java.lang.String instantiation_chain() throws CallException
instantiation_chain
in class Module
CallException
protected void free_chain() throws CallException
free_chain
in class Module
CallException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |