Interface SubcomponentResolver

All Known Subinterfaces:
ModelicaClassType

public interface SubcomponentResolver
This interface represents something that, being looked up by some prefix of composite name, may resolve further name parts. Lexically, this is represented by a dot-notation. Please do not confuse this with ModelicaScope representing lexical scope, that resolves names as if they are written in the corresponding part of the source file.
  • Method Summary

    Modifier and Type
    Method
    Description
    safeResolveComponent(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
    Resolves `name as if resolving subcomponents through the type of base component
  • Method Details

    • safeResolveComponent

      <T extends ResolvableEntity> ResolutionResult<T> safeResolveComponent(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
      Resolves `name as if resolving subcomponents through the type of base component
      Parameters:
      state - The resolution state
      name - The name to resolve
      Returns:
      The resolved declarations