Record Class Syntax.Elements
java.lang.Object
java.lang.Record
org.clafer.frontend.Syntax.Elements
- Record Components:
span- where they areelements- the elements
- All Implemented Interfaces:
Syntax.Node
- Enclosing class:
Syntax
public static record Syntax.Elements(SourceSpan span, List<Syntax.Element> elements)
extends Record
implements Syntax.Node
The elements of a clafer, in braces or indented.
-
Constructor Summary
ConstructorsConstructorDescriptionElements(SourceSpan span, List<Syntax.Element> elements) Creates an instance of aElementsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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
-
elements
-