Class ResolverOrDefiner

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.support.ResolverOrDefiner
Direct Known Subclasses:
ParameterisedLocator, ResolveOrDefineTypes

public abstract class ResolverOrDefiner extends RuleSupport
Used as an abstract base for parameterised types.
  • Field Details

    • symbolFactory

      protected final SymbolFactory symbolFactory
    • errorIfNotDefinedOrResolved

      protected final boolean errorIfNotDefinedOrResolved
  • Constructor Details

  • Method Details

    • resolveOrDefine

      public Optional<ISymbol> resolveOrDefine(ParameterisedTypeData details)
      Attempts to resolve the parameterised type first and return that, else returns a new symbol.