Class ResolutionDirective
java.lang.Object
org.ek9lang.compiler.directives.ResolutionDirective
- All Implemented Interfaces:
Directive
- Direct Known Subclasses:
ByteCodeDirective, ComplexityDirective, GenusDirective, ImplementsDirective, IRDirective, NotResolvedDirective, ResolvedDirective
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintWhich line number does this directive apply to.Provide a token from the source, by default if not possible supply synthetic.booleanisForPhase(CompilationPhase phase) returns true if the directive is for the phase passed in.booleantoString()
-
Constructor Details
-
ResolutionDirective
ResolutionDirective(DirectiveSpec spec) A new resolution style directive. The symbol Name can be single like Integer or parameterised like List of (String). If parameterised it must have the parenthesis.
-
-
Method Details
-
isForPhase
returns true if the directive is for the phase passed in.- Specified by:
isForPhasein interfaceDirective
-
getDirectiveToken
Description copied from interface:DirectiveProvide a token from the source, by default if not possible supply synthetic.- Specified by:
getDirectiveTokenin interfaceDirective
-
getAppliesToLineNumber
public int getAppliesToLineNumber()Description copied from interface:DirectiveWhich line number does this directive apply to.- Specified by:
getAppliesToLineNumberin interfaceDirective
-
getSymbolCategory
-
getSymbolName
-
getAdditionalName
-
isForVariable
public boolean isForVariable() -
getSymbolSearch
-
toString
-