Class PropertiesLeftUnset

java.lang.Object
org.ek9lang.compiler.phase5.PropertiesLeftUnset

final class PropertiesLeftUnset extends Object
THE reading of a constructor's CommonValues.LEAVES_PROPERTIES_UNSET mark: the properties (declared without a value) it leaves unset, following its this(...) chain. Walk 0 (ConstructorFieldInitialisationListener) writes it; Walk 1 reads it here, both to reject a construction call that reaches a private constructor carrying it (E08264) and to know which properties a this(...) call has set. Read it through this class, never from the squirrelled data directly: a constructor of a parameterised type is a substituted copy made before Walk 0 ran, so its mark is on the generic's own constructor.
  • Field Details

    • SEPARATOR

      static final String SEPARATOR
      How Walk 0 joins the names. The joined form is also what a message shows.
      See Also:
  • Method Details

    • describe

      static Optional<String> describe(MethodSymbol constructor)
      The names of the properties the constructor leaves unset, as a message shows them; empty when it sets them all.
    • namesOf

      static Set<String> namesOf(MethodSymbol constructor)
      The names of the properties the constructor leaves unset; empty when it sets them all.