Method level based analyze feature (outgoing/incoming dependencies)

When analyzing code (both for comprehension and safe refactorings) I often find helpful:

-incoming dependencies: when I change statement inside this method, what code do I influence and have to watch out?
-outgoing dependencies: which other code is used by my method?

Currently I can only see following analyze features which are more limited to single variables or complete classes: 'dataflow from here' + 'dataflow to here' + 'analyze dependencies'. They are a great start but I miss a more method level based analyzation. They  are very relevant because code-statements are  encapsulated inside methods.

A great example is the tool structure101, which in my view is the best tool for dependency analyzation (drilling down/up dependencies from class->method->variable(static+instance)) is fantastic. A tight integration with Intellij (where we are closer to the code) would be a dream :)

1 comment
Comment actions Permalink

Hello manuel,

Looks like the "Call hierarchy" feature is pretty similar to what you need.

And Structure101 used to have an IntelliJ plugin as well - no idea if it
still works, though.

When analyzing code (both for comprehension and safe refactorings) I
often find helpful:

-incoming dependencies: when I change statement inside this method,
what code do I influence and have to watch out?

-outgoing dependencies: which other code is used by my method?

Currently I can only see following analyze features which are more
limited to single variables or complete classes: 'dataflow from here'
+ 'dataflow to here' + 'analyze dependencies'. They are a great start
but I miss a more method level based analyzation. They  are very
relevant because code-statements are  encapsulated inside methods.

A great example is the tool structure101, which in my view is the best
tool for dependency analyzation (drilling down/up dependencies from
class->method->variable(static+instance)) is fantastic. A tight
integration with Intellij (where we are closer to the code) would be a
dream :)

---
Original message URL:
http://www.jetbrains.net/devnet/message/5253224#5253224

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.