Record Class MutatedOnlyVariables.Source.Elements
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.Source.Elements
- All Implemented Interfaces:
MutatedOnlyVariables.Source
- Enclosing interface:
MutatedOnlyVariables.Source
public static record MutatedOnlyVariables.Source.Elements(List<EK9Parser.ExpressionContext> sources)
extends Record
implements MutatedOnlyVariables.Source
A stream it was collected from holds the elements of these sources (
cat items | collect as ...).-
Nested Class Summary
Nested classes/interfaces inherited from interface MutatedOnlyVariables.Source
MutatedOnlyVariables.Source.Captures, MutatedOnlyVariables.Source.Elements, MutatedOnlyVariables.Source.Expr, MutatedOnlyVariables.Source.Variable -
Constructor Summary
ConstructorsConstructorDescriptionElements(List<EK9Parser.ExpressionContext> sources) Creates an instance of aElementsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Elements
Creates an instance of aElementsrecord class.- Parameters:
sources- the value for thesourcesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-