gnu.prolog.io
Class TermReader
java.lang.Object
java.io.Reader
java.io.FilterReader
gnu.prolog.io.TermReader
- All Implemented Interfaces:
- Closeable, Readable
public class TermReader
- extends FilterReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultOperatorSet
protected static final OperatorSet defaultOperatorSet
TermReader
public TermReader(Reader r,
int line,
int col,
Environment environment)
TermReader
public TermReader(Reader r,
Environment environment)
readTerm
public Term readTerm(ReadOptions options)
throws ParseException
- Throws:
ParseException
stringToTerm
public static Term stringToTerm(ReadOptions options,
String str,
Environment environment)
throws ParseException
- Throws:
ParseException
stringToTerm
public static Term stringToTerm(String str,
Environment environment)
throws ParseException
- Throws:
ParseException
readTermEof
public Term readTermEof(ReadOptions options)
throws ParseException
- Throws:
ParseException
readTerm
public Term readTerm(OperatorSet set)
throws ParseException
- Throws:
ParseException
readTermEof
public Term readTermEof(OperatorSet set)
throws ParseException
- Throws:
ParseException
readTerm
public Term readTerm()
throws ParseException
- Throws:
ParseException
readTermEof
public Term readTermEof()
throws ParseException
- Throws:
ParseException
getCurrentLine
public int getCurrentLine()
getCurrentColumn
public int getCurrentColumn()