Record Class ScmSetOp
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmSetOp
- All Implemented Interfaces:
ImpScmNode
public record ScmSetOp(ScmSetOp.Kind kind, ImpScmNode lhs, ImpScmNode rhs)
extends Record
implements ImpScmNode
Set algebra operation step over active bitsets (
UNION,
INTERSECT, DIFF).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionScmSetOp(ScmSetOp.Kind kind, ImpScmNode rhs) ScmSetOp(ScmSetOp.Kind kind, ImpScmNode lhs, ImpScmNode rhs) Creates an instance of aScmSetOprecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) static ScmSetOpdiff(ImpScmNode rhs) static ScmSetOpdiff(ImpScmNode lhs, ImpScmNode rhs) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ScmSetOpintersect(ImpScmNode rhs) static ScmSetOpintersect(ImpScmNode lhs, ImpScmNode rhs) kind()Returns the value of thekindrecord component.lhs()Returns the value of thelhsrecord component.rhs()Returns the value of therhsrecord component.final StringtoString()Returns a string representation of this record class.static ScmSetOpunion(ImpScmNode rhs) static ScmSetOpunion(ImpScmNode lhs, ImpScmNode rhs)
-
Constructor Details
-
ScmSetOp
Creates an instance of aScmSetOprecord class.- Parameters:
kind- the value for thekindrecord componentlhs- the value for thelhsrecord componentrhs- the value for therhsrecord component
-
ScmSetOp
-
-
Method Details
-
union
-
union
-
intersect
-
intersect
-
diff
-
diff
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
lhs
Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
rhs
Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-