Record Class HelperSource
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.HelperSource
- Record Components:
variable- the variable holding the helpertypeName- the helper's typehasNextMethod- its "is there another" method; answers a primitive booleannextMethod- its "take the next" method; answersAny
record HelperSource(String variable, String typeName, String hasNextMethod, String nextMethod)
extends Record
A runtime helper a stream loop drains - the async executor, a group/split tracker's stored buckets, the tail
buffer: the variable holding it, its type and its
hasNext/next pair. Every helper drain loop is
StreamPipelineMachinery.helperDrainLoop(HelperSource, String, String, List, Supplier, DebugInfo) over one of these.-
Constructor Summary
ConstructorsConstructorDescriptionHelperSource(String variable, String typeName, String hasNextMethod, String nextMethod) Creates an instance of aHelperSourcerecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) static HelperSourceasyncResults(String executorVar) The async executor's results, in completion order.(package private) static HelperSourceThe buckets a group or split tracker stored during its drain.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasNextMethodrecord component.Returns the value of thenextMethodrecord component.(package private) static HelperSourcetailBuffer(String tailBufferVar) The last N elements the tail buffer kept.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
HelperSource
Creates an instance of aHelperSourcerecord class.- Parameters:
variable- the value for thevariablerecord componenttypeName- the value for thetypeNamerecord componenthasNextMethod- the value for thehasNextMethodrecord componentnextMethod- the value for thenextMethodrecord component
-
-
Method Details
-
asyncResults
The async executor's results, in completion order. -
buckets
The buckets a group or split tracker stored during its drain. -
tailBuffer
The last N elements the tail buffer kept. -
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). -
variable
-
typeName
-
hasNextMethod
Returns the value of thehasNextMethodrecord component.- Returns:
- the value of the
hasNextMethodrecord component
-
nextMethod
Returns the value of thenextMethodrecord component.- Returns:
- the value of the
nextMethodrecord component
-