Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:20 am
by Patwos >> Wed, 23 Aug 2006 2:45:09 GMT
Michael has already indicated a way to get a list of method references for a given method, but you haven't indicated why you wanted to write such a script.
Are you intending to use this to "clean up" unused methods in your schema or are you just using this as a learning exercise to better understand the meta-data model in Jade?
If you're using it to identify methods that are candidates for removal in a clean-up process, be aware that the method may not be directly referenced but may still be used. eg: A reimplementation of a superclass method that gets executed at runtime via polymorphism, or constructors and destructors which are not directly referenced but are automatically executed at object create/delete respectively.
Also keep in mind that methods may be referenced by way of string literals using sendMessage, setPropertyValue/getPropertyValue or TcpIp asynchronous call-back methods. Hopefully by now most people are using the new meta-data notation in this situation, rather than string literals, but systems that have been around for some time may still contain liberal usage of string literals of this nature.
Hope that helps,
Pat.