Question

I need a plugin that can count the lines of code that a particular class uses. This includes the code within the particular class, and the number of lines of code in all the classes that it uses as well. (If it has an object from another class, the lines of code in that class need to be counted as well). I've found plugins that tell me all the lines in a whole project, but I just need to know the number involved in a particular class..

Was it helpful?

Solution

Check the Java NCSS plugin

Actually, why don't you simply check the line number of the last line of the class?

It seems you want to count the lines in classes that the current one depends on. I don't think you'll find one. The classes that are used within a class isn't always obvious. For example your methods may take a List as an argument. But whether this is LinkedList or ArrayList, the compiler can't know - it can be both.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top