Class ImplementsDirective

java.lang.Object
org.ek9lang.compiler.directives.ResolutionDirective
org.ek9lang.compiler.directives.ImplementsDirective
All Implemented Interfaces:
Directive

public class ImplementsDirective extends ResolutionDirective
To be used in EK9 source code to assert that a type can or cannot be resolved as extending a type or function. This can also work with TEMPLATE_TYPE and TEMPLATE_FUNCTION - but not METHODS (yet). //@Implements: EXPLICIT_TYPE_SYMBOL_DEFINITION: TYPE: "SomeClass": "SomeBaseCase" //@Implements: EXPLICIT_TYPE_SYMBOL_DEFINITION: TYPE: "SomeTrait": "SomeBaseTrait" //@Implements: EXPLICIT_TYPE_SYMBOL_DEFINITION: TYPE: "SomeClass": "SomeTrait" //@Implements: EXPLICIT_TYPE_SYMBOL_DEFINITION: FUNCTION: "SomeFunction": "SomeAbstractFunction"
  • Constructor Details

    • ImplementsDirective

      public ImplementsDirective(DirectiveSpec spec)
      New directive checker for implements.
  • Method Details

    • type

      public DirectiveType type()
      Description copied from interface: Directive
      What s the type of the directive.