Record Class ScmLaneWalk
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneWalk
- All Implemented Interfaces:
ImpScmNode
public record ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean accumulate, boolean fixedPoint)
extends Record
implements ImpScmNode
Multi-lane bit-sliced CSR/CSC traversal step (opcodes
0xC3 OP_LANE_CSR_WALK and 0xC4 OP_LANE_CSC_WALK).-
Constructor Summary
ConstructorsConstructorDescriptionScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean fixedPoint) ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean accumulate, boolean fixedPoint) Creates an instance of aScmLaneWalkrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) booleanReturns the value of theaccumulaterecord component.static ScmLaneWalkstatic ScmLaneWalkReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefixedPointrecord component.bytestatic ScmLaneWalkfinal inthashCode()Returns a hash code value for this object.intReturns the value of therelationIdrecord component.Returns the value of therelationNamerecord component.static ScmLaneWalkfinal StringtoString()Returns a string representation of this record class.withRelationId(int id)
-
Constructor Details
-
ScmLaneWalk
public ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean accumulate, boolean fixedPoint) Creates an instance of aScmLaneWalkrecord class.- Parameters:
relationName- the value for therelationNamerecord componentrelationId- the value for therelationIdrecord componentdirection- the value for thedirectionrecord componentaccumulate- the value for theaccumulaterecord componentfixedPoint- the value for thefixedPointrecord component
-
ScmLaneWalk
public ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean fixedPoint)
-
-
Method Details
-
forward
-
reverse
-
csr
-
csc
-
withRelationId
-
flagsByte
public byte flagsByte() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
relationName
Returns the value of therelationNamerecord component.- Returns:
- the value of the
relationNamerecord component
-
relationId
public int relationId()Returns the value of therelationIdrecord component.- Returns:
- the value of the
relationIdrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
accumulate
public boolean accumulate()Returns the value of theaccumulaterecord component.- Returns:
- the value of the
accumulaterecord component
-
fixedPoint
public boolean fixedPoint()Returns the value of thefixedPointrecord component.- Returns:
- the value of the
fixedPointrecord component
-