Displaying Unreferenced Methods
The Browse menu enables you to select and display the methods that are not referenced by any other method in the current schema or in other schemas. You can specify the display of unreferenced methods by performing one of the following actions.
-
Type of methods (that is, external methods, JADE methods, or all methods)
-
Methods provided by the selected class and optionally its subclasses, superclasses, or for all classes
-
Methods provided by the selected schema and optionally its subschema, superschemas, or for all schemas
A method is considered unreferenced according to the following criteria.
-
Not a condition
-
Does not implement an interface
-
Not used in an RPS mapping
-
Not an event method
-
Not used in a Web service
-
Not exported
-
Not a JadeWebServices class or subclass method.
-
Not a generated Web services method
-
Not checked out
-
Not an interface method with implementors
-
Not a reimplemented RootSchema method
-
Has no method references other than itself
-
Is a reimplemented method but the superclass methods have no method references
-
Not an application initialize or finalize method
-
Not a JadeScript method
-
Not a create, delete, userNotification, sysNotification, or timerEvent method
To specify the unreferenced methods that you want to view
-
From the browser, select the class or superclass whose unreferenced methods you want to view if you do not want to view the unreferenced methods of all classes.
-
Select the Unreferenced Methods command from the Browse menu.
The Unreferenced Methods dialog, shown in the following image, is then displayed, to enable you to specify the unreferenced methods that you want to view.
-
In the Select View group box, select the type of unreferenced methods that you want to view. By default, only unreferenced JADE methods are displayed.
-
Use the options in the Restrict Search To group box to select the classes and schemas to which you want to restrict the search for unreferenced methods if you do not want to display only the unreferenced methods of the current class in the current schema and its superschemas.
The search is context-dependent. For example, if the selected schema has no subschemas, the Current Schema And Subschemas option button is disabled.
When the Class Browser or Primitive Types Browser has focus, the search is performed only on the selected class in the current schema and its superschemas by default (that is, the Selected Class Only option button and the Current Schema And Superschemas option button are selected).
Conversely, when the Schema Browser has focus, options that are not valid are disabled and the All Classes and Current Schema And Superschemas option buttons are selected by default.
If you want to restrict the search for unreferenced methods to another option, the values that are you can select are listed in the following table, to enable you to select the appropriate option.
Class Restriction Options Schema Restriction Options Selected Class Only (Class or Primitive Types Browser default value) Current Schema Only Selected Class And Subclasses Current Schema and Subschemas Selected Class And Superclasses Current Schema and Superschemas (default value) All Classes (Schema Browser default value) All Schemas -
Click the OK button. Alternatively, click the Cancel button to abandon your selections.
When the search is complete, the Unreferenced Methods Browser, shown in the following image, is then displayed.
Use the Unreferenced Methods Browser to view the unreferenced methods that match your specified search options. The method list displays all selected unreferenced methods in alphabetical order by class. User-defined methods are displayed in black and methods defined in superschemas are displayed in blue.
For details about highlighting a method in the methods list (for example, as a reminder that more work on that method is required), see "Highlighting Methods in Lists of Methods".
You can extract a single method selected in the methods list at the top of the Unreferenced Methods Browser. For details, see "Extracting a Method Selected in a Methods List", later in this chapter.
To view the logic for a method
-
Select the required method in the method list.
The logic for the selected method is then displayed in the editor pane. You can modify and compile user-defined methods but you cannot modify system methods.