Record Class Syntax.TransArrow
java.lang.Object
java.lang.Record
org.clafer.frontend.Syntax.TransArrow
- Record Components:
span- where it issync- whether it is synchronousguard- the guard, if written
- All Implemented Interfaces:
Syntax.Node
- Enclosing class:
Syntax
public static record Syntax.TransArrow(SourceSpan span, boolean sync, Optional<Syntax.Exp> guard)
extends Record
implements Syntax.Node
A transition arrow:
-->, -->> (synchronous), or with a
guard, -[ g ]-> and -[ g ]->>.-
Constructor Summary
ConstructorsConstructorDescriptionTransArrow(SourceSpan span, boolean sync, Optional<Syntax.Exp> guard) Creates an instance of aTransArrowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.guard()Returns the value of theguardrecord component.final inthashCode()Returns a hash code value for this object.span()Returns the value of thespanrecord component.booleansync()Returns the value of thesyncrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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.- Specified by:
spanin interfaceSyntax.Node- Returns:
- the value of the
spanrecord component
-
sync
-
guard
-