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 Detail

      • safeResolveComponent

        <T extends ResolvableEntityResolutionResult<T> safeResolveComponent​(Class<T> clazz,
                                                                              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