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 withSubcomponentResolver
that represents "view from the outside" on something possibly looked up from other file via component reference.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ModelicaDeclaration>
getContainedDeclarations()
Returns the declarations that were lexically declared in this scope.ModelicaScope
getParent()
Returns the parent (i.e., containing) scope.RootScope
getRoot()
<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.
-
-
-
Method Detail
-
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()
-
-