Class ParsingResult
java.lang.Object
fr.inria.rules.integraal.api.internal.ParsingResult
Aggregates the objects parsed from a DLGP or DLGPE input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an atom to the parsed fact base.voidaddFactBase(FactBase factBase) Adds a fact base to the parsed fact base collection.voidaddQuery(UnionFOQuery query) Adds a query to the parsed query collection.voidAdds a rule to the parsed rule base.Returns the parsed fact base.Returns the parsed fact base collection.Returns the parsed query collection.Returns the parsed rule base.
-
Constructor Details
-
ParsingResult
public ParsingResult()Creates an empty parsing result.
-
-
Method Details
-
getFactBase
-
getRuleBase
-
getQueryCollection
Returns the parsed query collection.- Returns:
- the parsed queries
-
getFactBaseCollection
Returns the parsed fact base collection.- Returns:
- the parsed fact bases
-
addAtom
Adds an atom to the parsed fact base.- Parameters:
atom- the atom to add
-
addRule
Adds a rule to the parsed rule base.- Parameters:
rule- the rule to add
-
addQuery
Adds a query to the parsed query collection.- Parameters:
query- the query to add
-
addFactBase
Adds a fact base to the parsed fact base collection.- Parameters:
factBase- the fact base to add
-