Record Class Syntax.TransitionExp
java.lang.Object
java.lang.Record
org.clafer.frontend.Syntax.TransitionExp
- Record Components:
span- where it isfrom- the expression before the arrowarrow- the arrowto- the expression after it
- All Implemented Interfaces:
Syntax.Exp, Syntax.Node
- Enclosing class:
Syntax
public static record Syntax.TransitionExp(SourceSpan span, Syntax.Exp from, Syntax.TransArrow arrow, Syntax.Exp to)
extends Record
implements Syntax.Exp
A transition,
e1 --> e2.-
Constructor Summary
ConstructorsConstructorDescriptionTransitionExp(SourceSpan span, Syntax.Exp from, Syntax.TransArrow arrow, Syntax.Exp to) Creates an instance of aTransitionExprecord class. -
Method Summary
Modifier and TypeMethodDescriptionarrow()Returns the value of thearrowrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.intlevel()span()Returns the value of thespanrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
level
- Specified by:
levelin interfaceSyntax.Exp- Returns:
- the level of the expression in
clafer.cf, from 0 (a transition) to 27 (a name or a literal)
-
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). -
span
Returns the value of thespanrecord component.- Specified by:
spanin interfaceSyntax.Node- Returns:
- the value of the
spanrecord component
-
from
-
arrow
-
to
-