Record Class Ir.Connected
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Connected
- Enclosing class:
Ir
public static record Ir.Connected(SourceSpan span, Ir.Exp nodes, Ir.Exp relation, boolean directed)
extends Record
implements Ir.Exp
connected(nodes, relation, directed).-
Constructor Summary
ConstructorsConstructorDescriptionConnected(SourceSpan span, Ir.Exp nodes, Ir.Exp relation, boolean directed) Creates an instance of aConnectedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandirected()Returns the value of thedirectedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.relation()Returns the value of therelationrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Connected
Creates an instance of aConnectedrecord class.- Parameters:
span- the value for thespanrecord componentnodes- the value for thenodesrecord componentrelation- the value for therelationrecord componentdirected- the value for thedirectedrecord 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. -
span
Returns the value of thespanrecord component. -
nodes
-
relation
-
directed
Returns the value of thedirectedrecord component.- Returns:
- the value of the
directedrecord component
-