All Manuals > LispWorks IDE User Guide > 16 The Generic Function Browser

NextPrevUpTopContentsIndex

16.2 Examining information about combined methods

The method combinations view lets you examine information about the combined methods of the current generic function. You supply a signature and Generic Function Browser displays the combined methods of the generic function together with the arguments that match that method combination point.

Method combinations show you the calling order of methods. They use the class precedence lists of the classes on which the methods of a generic function operate. Being able to view these combinations gives you a simple way of seeing how before, after, and around methods are used in a particular generic function.

You can display this view by clicking the Method Combinations tab of a Generic Function Browser, or from the Debugger tool by choosing Frame > Method Combination in a frame containing a standard method. The method combinations view is shown in Generic function browser displaying method combinations below.

Figure 16.2 Generic function browser displaying method combinations

The method combinations view has a number of main sections, described below.

16.2.1 Function box

As with the methods view, the name of the generic function being browsed is shown here. See Function area for details.

16.2.2 Signatures button

Click Signatures... to display the Method Signatures dialog shown in Method Signatures dialog. This dialog lists the signatures for the methods defined on the current generic function. The signature of a method shows the types of the arguments.

Figure 16.3 Method Signatures dialog

To list the method combinations of any defined method in the Generic Function Browser, select its signature from the list in the Signatures panel of the Method Signatures dialog and click OK .

You can restrict the signatures displayed using Filter box in the usual way.

You can also restrict the display with the Restricted Class box. See Restricting displayed signatures by class for details.

16.2.3 Arguments types box

The Arguments Types: box is used to specify a signature, in order to see the method combinations. You can specify a signature here by either:

The method combinations for the relevant method are displayed in the list of method combinations.

16.2.4 List of method combinations

The main list in the method combinations view shows method combinations for the signature specified in the Arguments Types: box.

You can operate on any number of selected methods in this area using the commands in the Methods menu. See Performing operations on the current function or selected methods for details.

16.2.5 Description list

The Description list displays a description of any method selected in the list of method combinations. The same items of information are shown as in the methods view; see Description list.

To operate on any of the items displayed in this area, select them and choose a command from the Description menu. This menu contains the standard commands described in Performing operations on selected objects. You can operate on more than one item at once by making a multiple selection.

16.2.6 Restricting displayed signatures by class

The Method Signatures dialog was introduced in Signatures button. You can display this dialog by clicking Signatures... in the Generic Function Browser.

By default, the Method Signatures dialog displays the signatures of all methods defined on the generic function. When there are many methods, or when the distinction between different classes is not clear, this can be confusing.

To simplify the display, you can restrict the signatures displayed to a chosen class and its superclasses. To do this, enter the name of the chosen class into the Restricted Class box. You can click which allows you to select from a list of all class names which begin with the partial input you have entered. See Completion for detailed instructions. As with similar text input panes in the IDE, click to confirm your choice, to cancel the current setting.

Figure 16.4 Restricting the signatures by class

Once you have made a choice, only those signatures that contain the specified class or one of its superclasses are listed in the Signatures restricted to... panel of the dialog. This simplified display is useful when there are a large number of complicated signatures.

Be aware of the difference between this approach and the use of the Argument box in the Signatures panel. Restricting signatures confines the signatures offered in the dialog by means of the class of the signatures.

Click to display the signatures for all methods defined once again.


LispWorks IDE User Guide (Macintosh version) - 12 Feb 2015

NextPrevUpTopContentsIndex