D
Daniel Schneller
Hi!
I am looking for a way to detect certan patterns in our project's code.
For example I'd like to find all occurences of something like
LOOP
|
+-- CLASS_INSTANCEOF_CERTAINSUPERCLASS.METHODCALL
I. e. I'd like to find out, if and where someone calls methods of
classes of a certain superclass in any kind of loop, because usually
those classes contain only methods that should be called with caution.
Would Checkstyle be suitable? As far as I have seen it concentrates on
syntactic problems, but for the "instanceof" check I'd have to have a
little more of a semantic means of checking.
I'd be happy to hear about any other tool (preferrably with Eclipse
integration) or way to find such things.
Daniel
I am looking for a way to detect certan patterns in our project's code.
For example I'd like to find all occurences of something like
LOOP
|
+-- CLASS_INSTANCEOF_CERTAINSUPERCLASS.METHODCALL
I. e. I'd like to find out, if and where someone calls methods of
classes of a certain superclass in any kind of loop, because usually
those classes contain only methods that should be called with caution.
Would Checkstyle be suitable? As far as I have seen it concentrates on
syntactic problems, but for the "instanceof" check I'd have to have a
little more of a semantic means of checking.
I'd be happy to hear about any other tool (preferrably with Eclipse
integration) or way to find such things.
Daniel