Class ModelicaClassScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.modelica.resolver.ModelicaClassScope
-
- All Implemented Interfaces:
ModelicaScope
public final class ModelicaClassScope extends Object
A lexical scope corresponding to a Modelica class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelicaClassType
getClassDeclaration()
List<ModelicaDeclaration>
getContainedDeclarations()
Returns the declarations that were lexically declared in this scope.ModelicaScope
getParent()
Returns the parent (i.e., containing) scope.String
getRepresentation()
RootScope
getRoot()
void
resolveLexically(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.String
toString()
-
-
-
Method Detail
-
getClassDeclaration
public ModelicaClassType getClassDeclaration()
-
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()
-
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, 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 interfaceModelicaScope
-
getRoot
public RootScope getRoot()
- Specified by:
getRoot
in interfaceModelicaScope
-
-