Code - Usage Count
This exploration shows the usage count of each code element (the number of components that use the code element) for a given container.
Hovering the mouse pointer over an element will show a tooltip with more detail about that element.
If information about code visibility (public, package protected, internal, etc) is included in the software architecture model, a dropdown control will allow you to highlight all code elements with a given visibility.
In this example, all code elements that are
public have been highlighted.
Filtering code elements with a regular expression
A regular expression can be used to filter the code elements that are included in the exploration. For example:
.*- include all code elements.
repository- include all code elements that have
repositoryin the type name.
^(?!.*(model|util))- include all code elements that don't have
utilin the type name.
In this example, a regular expression of
^(?!.*(model|util)) has been used to filter out all
model/domain and utility classes. Code elements with
public visibility have also been highlighted.
This can be a useful way to identify single-use code elements that may have been made public accidentally.