How to list all Java methods by class?

45 views
Skip to first unread message

Eduardo Campos

unread,
Oct 18, 2018, 12:22:20 PM10/18/18
to Boa Language and Infrastructure User Forum
Hi guys,

Thanks for making this amazing tool available!!

I have a question and would like somebody's help...

Is it possible to create a query in Boa language that returns for each class present in the Java framework the list of all distinct method names invoked considering all Java projects that use GIT?

Best regards,

Eduardo Campos, Software Engineering Ph.D. Student

Robert Dyer

unread,
Oct 19, 2018, 8:37:12 AM10/19/18
to boa-...@googlegroups.com
Hi Eduardo,

You can definitely analyze each class, and find every single method call.  The only tricky part at the moment is you won’t immediately know the type of the receiver object.

But you can also track the type(s) of fields, locals, method arguments, etc and get a good bound on the type of a particular object.

- Robert

--
More information about Boa: http://boa.cs.iastate.edu/
---
You received this message because you are subscribed to the Google Groups "Boa Language and Infrastructure User Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boa-user+u...@googlegroups.com.
To post to this group, send email to boa-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eduardo Campos

unread,
Oct 19, 2018, 10:10:25 AM10/19/18
to Boa Language and Infrastructure User Forum
Hi Robert,

Thanks for your attention...

I already have a basic knowledge in Boa language but this specific problem I could not solve...

Could you make an example query so I have a notion of how I would do this?

Thank you very much in advance... Best regards,

Eduardo.
Reply all
Reply to author
Forward
0 new messages