Class SyntheticConstructorCreator
java.lang.Object
org.ek9lang.compiler.phase2.SyntheticConstructorCreator
- All Implemented Interfaces:
Consumer<IAggregateSymbol>
Some aggregates like classes, components, etc. Can be defined without a constructor.
If that is the case then a synthetic constructor(s) can be added. This is a bit like Java in terms of not requiring the developer to declare obvious constructors. The EK9 developer can use 'default Name' where Name is the class/record etc.
An EXTERN type (Java-backed: a built-in, or a defines extern library) that declares NO
constructor at all gets none: it is not constructible from EK9. The compiler does not generate an
extern type, so it must not promise a constructor its Java side was never declared to offer. Panic
is the live case (Steve, decision 10, 2026-10-05): compiler-only, so Panic() is METHOD_NOT_RESOLVED
exactly as Panic("x", 4) is.
-
Constructor Details
-
SyntheticConstructorCreator
SyntheticConstructorCreator(AggregateManipulator aggregateManipulator)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<IAggregateSymbol>
-