public final class DlgpParser extends AbstractCloseableIterator<Object> implements Parser<Object>
Constructor and Description |
---|
DlgpParser()
Constructor for parsing from the standard input.
|
DlgpParser(File file)
Constructor for parsing from the given file.
|
DlgpParser(InputStream in)
Constructor for parsing the given InputStream.
|
DlgpParser(Reader reader)
Constructor for parsing from the given reader.
|
DlgpParser(String s)
Constructor for parsing the content of the string s as DLGP content.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream and releases any system resources associated with it.
|
protected void |
finalize() |
boolean |
hasNext() |
Object |
next() |
static Atom |
parseAtom(String s) |
static CloseableIterator<Atom> |
parseAtomSet(String s) |
static NegativeConstraint |
parseNegativeConstraint(String s) |
static ConjunctiveQuery |
parseQuery(String s) |
static Rule |
parseRule(String s) |
public DlgpParser(Reader reader)
reader
- public DlgpParser()
public DlgpParser(File file) throws FileNotFoundException
file
- FileNotFoundException
public DlgpParser(String s)
s
- public DlgpParser(InputStream in)
in
- protected void finalize() throws Throwable
finalize
in class AbstractCloseableIterator<Object>
Throwable
public boolean hasNext()
public Object next() throws ParseException
next
in interface Parser<Object>
next
in interface CloseableIterator<Object>
ParseException
public void close()
close
in interface CloseableIterator<Object>
close
in interface Closeable
close
in interface AutoCloseable
public static ConjunctiveQuery parseQuery(String s) throws ParseException
ParseException
public static Atom parseAtom(String s) throws ParseException
ParseException
public static Rule parseRule(String s) throws ParseException
ParseException
public static NegativeConstraint parseNegativeConstraint(String s) throws ParseException
ParseException
public static CloseableIterator<Atom> parseAtomSet(String s) throws ParseException
ParseException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.