Redirections finder analysis

Redirections finder analysis looks for classes whose methods redirect their callers to dedicated methods of another (same) class. Examples of such classes are, for instance, typical implementations of Decorators (see the GoF Decorator pattern).

Running the analysis

The Redirections finder analysis requires the model built by Fan-in Analysis, so the latter analysis should be executed first. To further run the Redirections finder analysis, the user has to open the Redirection layer view and Referesh the model: From Eclipse's menu select Window -> Show View -> Other... -> FINT and open Redirection layer View. Select the Refresh button from the view's toolbar.

The results are displayed as tree structures: the candidates for the redirector class and the class receiving the redirection are shown as parent-elements in the tree; the pair methods in the two classes executing and receiving the redirection, respectively, are the child-elements.

The number of potential redirector methods is displayed next to the parent elements. Note that the analysis also considers and displays constructors, although in most cases these are not relevant elements for redirection.

The view presents the user with a number of options:

The code of the callers can be inspected by double-click on the specific call relation.

Further on, it is possible to:


The analysis settings include:

Callees filters


To select "utility" elements, the user is presented with the Java element hierarchy of the analyzed element. The "utility" elements are checked by the user in the dialog window of the Redirection Layer Analysis Setup. Such utility elements could include (JUnit) test packages, as in the shown example.

See also: Fan-in Analysis