Class ProcessAsDispatcherIfNecessary

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

class ProcessAsDispatcherIfNecessary extends Object implements Consumer<ISymbol>
If any of its OWN methods is marked as 'dispatcher' then mark this class as a 'dispatcher'. In phase 1 no super is linked yet, so its own methods are all there is; a sub-type that inherits a dispatcher and adds handlers is marked in phase 2 by support/InheritedDispatcher (D2). User-facing "is this a dispatcher?" must still ask DispatcherHandlers.entryPointsOf, never this marker (operators set it too).
  • Constructor Details

    • ProcessAsDispatcherIfNecessary

      ProcessAsDispatcherIfNecessary()
  • Method Details