|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ugos.JIProlog.engine.JIPTermParser
JIPTermParser parses a prolog stream and create an enumeration of prologprolog terms (atom, functor, list, etc.)
JIPEngine.getTermParser()| Method Summary | |
java.util.Enumeration |
parseStream(java.io.InputStream ins,
java.lang.String streamName)
Returns an enumeration of terms contained in the specified input stream. |
JIPTerm |
parseTerm(java.lang.String strTerm)
Parses the term passed in the parameter and returns a JIPTerm object that wraps the corresponding prolog term. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public final java.util.Enumeration parseStream(java.io.InputStream ins,
java.lang.String streamName)
ins - the input stream to parse.streamName - tha name of the stream (i.e. the name of the associated file)
public final JIPTerm parseTerm(java.lang.String strTerm)
throws JIPSyntaxErrorException
strTerm - Term to be parsed. If the term doesn't end with a "dot" one is appended to it.
JIPSyntaxErrorException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||