Record Class ImpLogCompiler.ParsedAtom
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.datalog.ImpLogCompiler.ParsedAtom
- Enclosing class:
ImpLogCompiler
-
Constructor Summary
ConstructorsConstructorDescriptionParsedAtom(String predicate, List<String> args, boolean negated, boolean reverseDirection) Creates an instance of aParsedAtomrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleannegated()Returns the value of thenegatedrecord component.Returns the value of thepredicaterecord component.booleanReturns the value of thereverseDirectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedAtom
Creates an instance of aParsedAtomrecord class.- Parameters:
predicate- the value for thepredicaterecord componentargs- the value for theargsrecord componentnegated- the value for thenegatedrecord componentreverseDirection- the value for thereverseDirectionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
args
-
negated
public boolean negated()Returns the value of thenegatedrecord component.- Returns:
- the value of the
negatedrecord component
-
reverseDirection
public boolean reverseDirection()Returns the value of thereverseDirectionrecord component.- Returns:
- the value of the
reverseDirectionrecord component
-