|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjess.Jesp
Parser functionality for Jess. Not serializable, as it holds a reference to an input stream.
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
Constructor Summary | |
Jesp(java.io.Reader reader,
Rete engine)
Construct a Jesp object. |
Method Summary | |
void |
clear()
Flush any partially-parsed information, probably to the next ')'. |
Value |
loadFacts(Context c)
Parses an input file containing only facts, asserts each one. |
Value |
parse(boolean prompt)
Parses an input file. |
Value |
parse(boolean prompt,
Context context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Jesp(java.io.Reader reader, Rete engine)
reader
- The Reader from which this Jesp should get its inputengine
- The engine that the parsed commands go toMethod Detail |
public Value parse(boolean prompt) throws JessException
prompt
- True if a prompt should be printed.
JessException
- If anything goes wrong.public Value parse(boolean prompt, Context context) throws JessException
JessException
public void clear()
public Value loadFacts(Context c) throws JessException
JessException
- If an error occurs
|
© 2001 E.J. Friedman-Hill and Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |