|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.LispPrimitiveParser
public class LispPrimitiveParser
Reads Primitives from .lisp files
Constructor Summary | |
---|---|
LispPrimitiveParser()
|
Method Summary | |
---|---|
boolean |
canRead(java.lang.String strFile)
Can this reader process the given file? |
java.util.ArrayList |
getActions(java.lang.String strFile)
Get the list of action primitives file |
java.lang.String |
getDescription()
Get the description of file |
private java.lang.String |
getFileContents(java.lang.String strFile)
Read the contents of a text file |
java.util.ArrayList |
getSenses(java.lang.String strFile)
Get the list of sense primitives from this file |
private void |
scanFor(LispBlob blob,
java.util.ArrayList storeTo,
java.lang.String scanText)
Scan a blob of lisp for primitives of certain types |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LispPrimitiveParser()
Method Detail |
---|
private java.lang.String getFileContents(java.lang.String strFile)
strFile
- File to load
public boolean canRead(java.lang.String strFile)
canRead
in interface IPrimitiveReader
strFile
- Path to file to read
public java.util.ArrayList getActions(java.lang.String strFile)
getActions
in interface IPrimitiveReader
strFile
- Path to file to read.
public java.lang.String getDescription()
getDescription
in interface IPrimitiveReader
public java.util.ArrayList getSenses(java.lang.String strFile)
getSenses
in interface IPrimitiveReader
strFile
- Path to file to read.
private void scanFor(LispBlob blob, java.util.ArrayList storeTo, java.lang.String scanText)
blob
- Blob of lisp we're working withstoreTo
- Arraylist we're storing primitives toscanText
- Text that indicates the desired type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |