Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I can know how many methods a class has, using IntelliJ IDEA?

I am using IntelliJ IDEA.

How I can know how many methods a class has? Are there any plugins to see metrics concerning the number of methods?

like image 400
Miuler Avatar asked Aug 29 '12 22:08

Miuler


People also ask

How can I see all methods in a class IntelliJ?

By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.

How do you see the documentation for any class or method in IntelliJ?

You can view documentation by placing the caret at a symbol and pressing Ctrl+Q or selecting View | Quick Documentation from the main menu.

How do I find the method call hierarchy in IntelliJ?

Press Ctrl + Alt + H on Windows/Linux, ⌥ + ^ + H on macOS, and the Call Hierarchy tool window will open up with all the places that the function is called inside.


1 Answers

Try the MetricsReloaded plug-in.

Help | Find Action | Calculate Metrics.

Create a new empty profile with CSO enabled — Class metrics, Class size (operations):

CSO

Run the profile, it will show the number of methods per class:

Result

You may also want to enable ISO (Interface size) metric.

like image 123
CrazyCoder Avatar answered Oct 01 '22 05:10

CrazyCoder