jakarta-bcel-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James CE Johnson" <j...@tragus.org>
Subject RE: New bcel user question
Date Tue, 05 Aug 2003 19:06:30 GMT
> You might try looking in the constant pool for instances of
> ConstantMethodref and ConstantInterfaceMethodref.

I tried grabbing the constant pool but everything reported was
ConstantUtf8 :-(

>
> -----Original Message-----
> From: James CE Johnson [mailto:jcej@tragus.org]
> Sent: Tuesday, August 05, 2003 12:57 PM
> To: bcel-user@jakarta.apache.org
> Subject: New bcel user question
>
>
> Hi,
>
> I'm trying to use bcel to analyze a class to see what other classes it
> references.
>
> Let's say I have a class like this:
>
> class Foo
> {
>   public void foo()
>   {
>     Class c = some.packaged.ClassFile;
>     ...
>   }
> }
>
> In my "analyzis" of Foo I need to know that it references
> some.packaged.ClassFile. I can't quite figure out how to do that.
>
> Suggestions?
>
> Thanks,
> James
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org


Mime
View raw message