Class DlgpeElemFactory
java.lang.Object
fr.inria.rules.integraal.io.dlgpe2.DlgpeElemFactory
- All Implemented Interfaces:
fr.inria.rules.dlgpereader.builder.api.IElemFactory
public class DlgpeElemFactory
extends Object
implements fr.inria.rules.dlgpereader.builder.api.IElemFactory
Creates InteGraal elements while parsing DLGPE input.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an element factory bound to the supplied parsing environment. -
Method Summary
Modifier and TypeMethodDescriptioncreateConstant(String name) createFunctionalTerm(String functionName, List<? extends fr.inria.rules.dlgpemodel.api.elems.ITerm> args) fr.inria.rules.dlgpemodel.api.elems.ILiteralcreateLiteral(String repr, String type) createPredicate(String name, int arity) createVariable(String name, boolean anonymous) Returns the term factory used by this element factory.static org.json.JSONArrayReads a JSON array from the supplied URL.
-
Constructor Details
-
DlgpeElemFactory
Creates an element factory bound to the supplied parsing environment.- Parameters:
env- the DLGPE parsing environment
-
-
Method Details
-
getTermFactory
Returns the term factory used by this element factory.- Returns:
- the backing term factory
-
createConstant
-
createVariable
-
createLiteral
-
createFunctionalTerm
public EvaluableFunction createFunctionalTerm(String functionName, List<? extends fr.inria.rules.dlgpemodel.api.elems.ITerm> args) - Specified by:
createFunctionalTermin interfacefr.inria.rules.dlgpereader.builder.api.IElemFactory
-
readJsonArrayFromUrl
-
createPredicate
-