Record Class ScmFixpoint
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmFixpoint
- All Implemented Interfaces:
ImpScmNode
public record ScmFixpoint(String relationName, int relationId, ScmWalk.Direction direction, int maxIterations, List<ImpScmNode> bodySteps)
extends Record
implements ImpScmNode
Fixed-point transitive closure / Kleene star walk step (opcode
0x88 OP_FIXPOINT_KLEENE_STAR or delta-BFS loop).-
Constructor Summary
ConstructorsConstructorDescriptionScmFixpoint(String relationName, int relationId, ScmWalk.Direction direction, int maxIterations, List<ImpScmNode> bodySteps) Creates an instance of aScmFixpointrecord class.ScmFixpoint(ScmProgram body) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) body()Returns the value of thebodyStepsrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxIterationsrecord component.static ScmFixpointofRelation(String relationName, ScmWalk.Direction direction, int maxIterations) intReturns the value of therelationIdrecord component.Returns the value of therelationNamerecord component.final StringtoString()Returns a string representation of this record class.withRelationId(int id)
-
Constructor Details
-
ScmFixpoint
public ScmFixpoint(String relationName, int relationId, ScmWalk.Direction direction, int maxIterations, List<ImpScmNode> bodySteps) Creates an instance of aScmFixpointrecord class.- Parameters:
relationName- the value for therelationNamerecord componentrelationId- the value for therelationIdrecord componentdirection- the value for thedirectionrecord componentmaxIterations- the value for themaxIterationsrecord componentbodySteps- the value for thebodyStepsrecord component
-
ScmFixpoint
-
-
Method Details
-
body
-
ofRelation
public static ScmFixpoint ofRelation(String relationName, ScmWalk.Direction direction, int maxIterations) -
withRelationId
-
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
-
maxIterations
public int maxIterations()Returns the value of themaxIterationsrecord component.- Returns:
- the value of the
maxIterationsrecord component
-
bodySteps
Returns the value of thebodyStepsrecord component.- Returns:
- the value of the
bodyStepsrecord component
-