has-method is optimized to limit the number of .class reads, so it does not reuse get-methods (which gets all the methods). However, has-method has the same access requirements as get-methods: no inheritance of private methods and only protected/public methods if subclass is in different package.

Submitted on 5 December 2005 at 00:07

Log in to post comments