Record Class Syntax.Init
java.lang.Object
java.lang.Record
org.clafer.frontend.Syntax.Init
- Record Components:
span- where it ishow- how it is writtenexp- the value
- All Implemented Interfaces:
Syntax.Node
- Enclosing class:
Syntax
public static record Syntax.Init(SourceSpan span, Syntax.InitHow how, Syntax.Exp exp)
extends Record
implements Syntax.Node
An initializer,
= e or := e.-
Constructor Summary
ConstructorsConstructorDescriptionInit(SourceSpan span, Syntax.InitHow how, Syntax.Exp exp) Creates an instance of aInitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exp()Returns the value of theexprecord component.final inthashCode()Returns a hash code value for this object.how()Returns the value of thehowrecord component.span()Returns the value of thespanrecord 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. 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
-
how
-
exp
-