Interface SubcomponentResolver
-
- All Known Subinterfaces:
ModelicaClassType
public interface SubcomponentResolver
This interface represents something that, being looked up by some prefix of composite name, may resolve further name parts. Lexically, this is represented by a dot-notation. Please do not confuse this withModelicaScope
representing lexical scope, that resolves names as if they are written in the corresponding part of the source file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ResolvableEntity>
ResolutionResult<T>safeResolveComponent(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
Resolves `name
as if resolving subcomponents through the type of base component
-
-
-
Method Detail
-
safeResolveComponent
<T extends ResolvableEntity> ResolutionResult<T> safeResolveComponent(Class<T> clazz, net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, CompositeName name)
Resolves `name
as if resolving subcomponents through the type of base component- Parameters:
state
- The resolution statename
- The name to resolve- Returns:
- The resolved declarations
-
-