Record Class StreamAssemblyData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.StreamAssemblyData
- Record Components:
source- This is a typed source of typed objects.streamParts- These are the optional stream parts.termination- This is the termination part and has a type, that may or may not accept piped in typed objects.
public record StreamAssemblyData(StreamCallSymbol source, List<EK9Parser.StreamPartContext> streamParts, StreamCallSymbol termination)
extends Record
The construct for a Stream statement/expression.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamAssemblyData(StreamCallSymbol source, List<EK9Parser.StreamPartContext> streamParts, StreamCallSymbol termination) Creates an instance of aStreamAssemblyDatarecord 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.source()Returns the value of thesourcerecord component.Returns the value of thestreamPartsrecord component.Returns the value of theterminationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamAssemblyData
public StreamAssemblyData(StreamCallSymbol source, List<EK9Parser.StreamPartContext> streamParts, StreamCallSymbol termination) Creates an instance of aStreamAssemblyDatarecord class.- Parameters:
source- the value for thesourcerecord componentstreamParts- the value for thestreamPartsrecord componenttermination- the value for theterminationrecord 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). -
source
-
streamParts
Returns the value of thestreamPartsrecord component.- Returns:
- the value of the
streamPartsrecord component
-
termination
Returns the value of theterminationrecord component.- Returns:
- the value of the
terminationrecord component
-