|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.PythonPrimitivesParser
public class PythonPrimitivesParser
Provides a simple abstraction for loading primitives from a .py file.
Constructor Summary | |
---|---|
PythonPrimitivesParser()
|
Method Summary | |
---|---|
boolean |
canRead(java.lang.String fileName)
Can this reader process the given file? |
java.util.ArrayList |
getActions(java.lang.String fileName)
Get the list of action primitives file |
java.lang.String |
getDescription()
Get a description of this parser |
private java.lang.String |
getFileContents(java.lang.String strFile)
Read the contents of a text file |
java.util.ArrayList |
getSenses(java.lang.String fileName)
Get the list of sense primitives from this file |
private java.util.ArrayList |
Scan(java.lang.String patternText,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PythonPrimitivesParser()
Method Detail |
---|
private java.lang.String getFileContents(java.lang.String strFile)
strFile
- File to load
public boolean canRead(java.lang.String fileName)
IPrimitiveReader
canRead
in interface IPrimitiveReader
fileName
- Path to file to read
public java.util.ArrayList getSenses(java.lang.String fileName)
IPrimitiveReader
getSenses
in interface IPrimitiveReader
fileName
- Path to file to read.
public java.util.ArrayList getActions(java.lang.String fileName)
IPrimitiveReader
getActions
in interface IPrimitiveReader
fileName
- Path to file to read.
private java.util.ArrayList Scan(java.lang.String patternText, java.lang.String text)
public java.lang.String getDescription()
getDescription
in interface IPrimitiveReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |