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.StringgetFileFQCN()ModelicaScopegetParent()Returns the parent (i.e., containing) scope.StringgetRepresentation()RootScopegetRoot()booleanisInDefaultPackage()voidresolveLexically(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext result, CompositeName name)<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.StringtoString()
-
-
-
Method Detail
-
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:ModelicaScopeReturns the parent (i.e., containing) scope.- Specified by:
getParentin interfaceModelicaScope
-
getContainedDeclarations
public List<ModelicaDeclaration> getContainedDeclarations()
Description copied from interface:ModelicaScopeReturns the declarations that were lexically declared in this scope.- Specified by:
getContainedDeclarationsin interfaceModelicaScope
-
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:ModelicaScopeResolves a name as if it is written inside this lexical scope in a file.- Specified by:
safeResolveLexicallyin interfaceModelicaScope
-
getRoot
public RootScope getRoot()
- Specified by:
getRootin interfaceModelicaScope
-
-