Class GeneratedOperatorFields
java.lang.Object
org.ek9lang.compiler.support.GeneratedOperatorFields
- All Implemented Interfaces:
Function<AggregateSymbol, List<ISymbol>>
public final class GeneratedOperatorFields
extends Object
implements Function<AggregateSymbol, List<ISymbol>>
THE fields a generated operator (
?, $, $$, ==, <=>, #?,
_fieldSetStatus) walks for one aggregate: its DeclaredProperties, then the variables a dynamic class
captured (CapturedVariables; each becomes a field). Inherited fields are not here - a generated operator
reaches them by calling the super's operator. The order is the order the generated code walks them.
Shared by phase 7 synthesis (AbstractSyntheticGenerator.getSyntheticFields) and the phase-5
property-cycle pass (PropertyTypeGraph), so the decision to guard a type and the code that recurses
through its fields are read from the same set and cannot disagree. The same two halves in the other order are
ConstructorProperties; "has fields, counting inherited ones" is HasFieldsIncludingInherited.
An enumeration has no fields (Steve, 2026-10-28, DFN-12 follow-up): see DeclaredProperties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AggregateSymbol aggregateSymbol) The aggregate's own properties followed by its captured variables, in declaration order.
-
Constructor Details
-
GeneratedOperatorFields
public GeneratedOperatorFields()
-
-
Method Details
-
apply
The aggregate's own properties followed by its captured variables, in declaration order.- Specified by:
applyin interfaceFunction<AggregateSymbol, List<ISymbol>>
-