Class ModelicaSourceFileScope

java.lang.Object
net.sourceforge.pmd.lang.modelica.resolver.ModelicaSourceFileScope
All Implemented Interfaces:
ModelicaScope

public final class ModelicaSourceFileScope extends Object
A scope corresponding to some specific Modelica source code file.
  • Method Details

    • resolveLexically

      public void resolveLexically(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext result, CompositeName name) throws net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog.CountdownException
      Throws:
      net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog.CountdownException
    • getRepresentation

      public String getRepresentation()
    • isInDefaultPackage

      public boolean isInDefaultPackage()
    • getFileFQCN

      public String getFileFQCN()
    • getParent

      public ModelicaScope getParent()
      Description copied from interface: ModelicaScope
      Returns the parent (i.e., containing) scope.
      Specified by:
      getParent in interface ModelicaScope
    • getContainedDeclarations

      public List<ModelicaDeclaration> getContainedDeclarations()
      Description copied from interface: ModelicaScope
      Returns the declarations that were lexically declared in this scope.
      Specified by:
      getContainedDeclarations in interface ModelicaScope
    • safeResolveLexically

      public <T extends ResolvableEntity> ResolutionResult<T> safeResolveLexically(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
      Description copied from interface: ModelicaScope
      Resolves a name as if it is written inside this lexical scope in a file.
      Specified by:
      safeResolveLexically in interface ModelicaScope
    • getRoot

      public RootScope getRoot()
      Specified by:
      getRoot in interface ModelicaScope
    • toString

      public String toString()
      Overrides:
      toString in class Object