Record Class MutatedOnlyVariables.Source.Captures
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.Source.Captures
- All Implemented Interfaces:
MutatedOnlyVariables.Source
- Enclosing interface:
MutatedOnlyVariables.Source
public static record MutatedOnlyVariables.Source.Captures(List<EK9Parser.ExpressionContext> arguments)
extends Record
implements MutatedOnlyVariables.Source
A dynamic CLASS it refers to holds what it captured: each capture argument.
-
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
ConstructorsConstructorDescriptionCaptures(List<EK9Parser.ExpressionContext> arguments) Creates an instance of aCapturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Captures
Creates an instance of aCapturesrecord class.- Parameters:
arguments- the value for theargumentsrecord 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). -
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-