Record Class ParserResult
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.io.dlgp.ParserResult
- Record Components:
atoms- arules- rqueries- qviews- v
public record ParserResult(Collection<Atom> atoms, Collection<FORule> rules, Collection<Query> queries, Collection<DataSource<String,?>> views)
extends Record
Result of the DLGP parsing
-
Constructor Summary
ConstructorsConstructorDescriptionParserResult(Collection<Atom> atoms, Collection<FORule> rules, Collection<Query> queries, Collection<DataSource<String, ?>> views) Creates an instance of aParserResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionatoms()Returns the value of theatomsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.queries()Returns the value of thequeriesrecord component.rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.union(ParserResult other) Creates a union of two DlgpParserResult records.views()Returns the value of theviewsrecord component.
-
Constructor Details
-
ParserResult
public ParserResult(Collection<Atom> atoms, Collection<FORule> rules, Collection<Query> queries, Collection<DataSource<String, ?>> views) Creates an instance of aParserResultrecord class.
-
-
Method Details
-
union
Creates a union of two DlgpParserResult records.- Parameters:
other- The other DlgpParserResult to union with this one.- Returns:
- A new DlgpParserResult representing the union of this and the other record.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
atoms
-
rules
-
queries
-
views
-