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.

Code - Usage Count

Tooltip

Hovering the mouse pointer over an element will show a tooltip with more detail about that element.

Code - Usage Count

Visibility

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.

Code - Usage Count

In this example, all code elements that are not public have been greyed out.

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 repository in the type name.
  • ^(?!.*(model|util)) - include all code elements that don't have model or util in the type name.

Code - Usage Count

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.