|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.compiler.Parser
public class Parser
Parses a datalog program in human readable form in to an IRIS object model.
| Constructor Summary | |
|---|---|
Parser()
Default constructor. |
|
Parser(BuiltinRegister builtinRegister)
Constructor for custom BuitinRegister. |
|
| Method Summary | |
|---|---|
BuiltinRegister |
getBuiltinRegister()
Get the built-in register instance for adding or removing built-ins. |
Map<IPredicate,IRelation> |
getFacts()
|
List<IQuery> |
getQueries()
|
List<IRule> |
getRules()
|
void |
parse(Reader r)
Parses a datalog string. |
void |
parse(String program)
Parses a datalog program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
public Parser(BuiltinRegister builtinRegister)
builtinRegister - The built-in register to use.| Method Detail |
|---|
public BuiltinRegister getBuiltinRegister()
public void parse(String program)
throws ParserException
program - The program to parse. This must not be null.
ParserExceptionpublic List<IRule> getRules()
public Map<IPredicate,IRelation> getFacts()
public List<IQuery> getQueries()
public void parse(Reader r)
throws ParserException
r - the reader from where to read the programp - the program where to add the objects. Might be
null
ParserException - if something went wrong while
parsing
IllegalArgumentException - if the reader is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||