Package org.ek9lang.compiler.directives
Class ImplementsDirective
java.lang.Object
org.ek9lang.compiler.directives.ResolutionDirective
org.ek9lang.compiler.directives.ImplementsDirective
- All Implemented Interfaces:
Directive
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 Summary
ConstructorDescriptionNew directive checker for implements. -
Method Summary
Methods inherited from class org.ek9lang.compiler.directives.ResolutionDirective
getAdditionalName, getAppliesToLineNumber, getDirectiveToken, getSymbolCategory, getSymbolName, getSymbolSearch, isForPhase, isForVariable, toString
-
Constructor Details
-
ImplementsDirective
New directive checker for implements.
-
-
Method Details
-
type
Description copied from interface:Directive
What s the type of the directive.
-