Code analysis: Find all possible concrete classes given a handle to an interface?

Mark Smith <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

I have a code analysis question.  How can I find all possible concrete classes given a handle to an interface?  I think I need to use an Analyzer and examine Frames to keep track of it, but not sure exactly how.

For example say I have a large codebase and am calling this method throughout my code:

public class Util{
 public static void foo(java.util.List<String> someList){
   /**
     some code
    **/
 }
}

Is there a way to find all possible concrete classes that get passed into Util::foo() ?  For example someone could pass in a java.util.ArrayList<String> or a java.util.LinkedList<String>.

There should be someway to do a backwards data flow analysis to get this, not sure how.  Any help is appreciated.

Thanks,
Mark
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.