Class ValidAggregateConstructorsOrError

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase1.ValidAggregateConstructorsOrError
All Implemented Interfaces:
Consumer<ISymbol>

class ValidAggregateConstructorsOrError extends RuleSupport implements Consumer<ISymbol>
Checks that if the aggregate is a generic class that the appropriate public constructors are in place.

This is important for generic classes as their construction can take multiple forms. BUT, it is important that a 'public' default constructor is present on Generic types so that the EK9 developer can write 'Optional() of String' for example.

  • Constructor Details

    • ValidAggregateConstructorsOrError

      protected ValidAggregateConstructorsOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
  • Method Details