Interface ModelicaScope

All Known Implementing Classes:
ModelicaClassScope, ModelicaSourceFileScope, RootScope

public interface ModelicaScope
A lexical scope of Modelica code. That is, a component declaration does not have one, it is its type that does (but these may be resolved to multiple classes or not resolved at all, these classes generally reside in other files, etc.) Please do not confuse this with SubcomponentResolver that represents "view from the outside" on something possibly looked up from other file via component reference.
  • Method Details

    • getContainedDeclarations

      List<ModelicaDeclaration> getContainedDeclarations()
      Returns the declarations that were lexically declared in this scope.
    • safeResolveLexically

      <T extends ResolvableEntity> ResolutionResult<T> safeResolveLexically(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
      Resolves a name as if it is written inside this lexical scope in a file.
    • getParent

      ModelicaScope getParent()
      Returns the parent (i.e., containing) scope.
    • getRoot

      RootScope getRoot()