Appendix - Adding custom root methods
Prev |  | Next

## Appendix - Adding custom root methods

Kaveri now allows the user to slice any Java program including applets, servlets.. Etc. To do so, the user needs to define a set of root methods for the project. These act as entry points to be used while slicing. In projects containing the main method, there is no need to specify the root methods as these are picked up automatically.

To add a method as a root method, select the method in the Java outline view and select Indus -> Mark as root method from the context menu. A marker is placed on the method, which is visible from the Java editor indicating that this is a root method. Once this has been done, the root methods are added to any slice that is performed on the file. This means that the Slice Actions can also be used to perform the slice. Note that there is no need to explicitly pick the root methods for slicing, as they are automatically used once they are defined. The user can delete the unecessary root methods from the Slice Configuration dialog.

Figure 15. Viewing the root methods for a project

Prev | Up | Next
Appendix - Creating Contexts | Home | Appendix - Performance