Class CapturedPropertiesRecorder
java.lang.Object
org.ek9lang.compiler.support.CapturedPropertiesRecorder
- All Implemented Interfaces:
BiConsumer<IAggregateSymbol, List<ISymbol>>
public final class CapturedPropertiesRecorder
extends Object
implements BiConsumer<IAggregateSymbol, List<ISymbol>>
Records what the captures of a dynamic class are to its constructors (phase 3 only, once the capture constructor
is decided). Only the capture constructor (
IsCaptureConstructor) stores them, before _i_init. So
when the class declares any other constructor, each capture is - to the constructors and the property initialisers
- a property declared with no value (UNINITIALISED_AT_DECLARATION): the named-class rule then applies
unchanged, through THE existing checks (every real construction route sets it, E08060; a public default
no-arg constructor, E07175; an initialiser may not read it). When the capture constructor is the only one, a
capture always holds its value and nothing is recorded.
Was CaptureConstructor.recordCapturedProperties (no-statics lane S3, 2026-10-29).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IAggregateSymbol dynamicClass, List<ISymbol> capturedVariables) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
CapturedPropertiesRecorder
public CapturedPropertiesRecorder()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<IAggregateSymbol, List<ISymbol>>
-