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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ModelicaDeclaration>
getContainedDeclarations()
Returns the declarations that were lexically declared in this scope.String
getFileFQCN()
ModelicaScope
getParent()
Returns the parent (i.e., containing) scope.String
getRepresentation()
RootScope
getRoot()
boolean
isInDefaultPackage()
void
resolveLexically(ResolutionContext result, CompositeName name)
<T extends ResolvableEntity>
ResolutionResult<T>safeResolveLexically(Class<T> clazz, ResolutionState state, CompositeName name)
Resolves a name as if it is written inside this lexical scope in a file.String
toString()
-
-
-
Method Detail
-
resolveLexically
public void resolveLexically(ResolutionContext result, CompositeName name) throws Watchdog.CountdownException
- Throws:
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 interfaceModelicaScope
-
getContainedDeclarations
public List<ModelicaDeclaration> getContainedDeclarations()
Description copied from interface:ModelicaScope
Returns the declarations that were lexically declared in this scope.- Specified by:
getContainedDeclarations
in interfaceModelicaScope
-
safeResolveLexically
public <T extends ResolvableEntity> ResolutionResult<T> safeResolveLexically(Class<T> clazz, 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 interfaceModelicaScope
-
getRoot
public RootScope getRoot()
- Specified by:
getRoot
in interfaceModelicaScope
-
-