A representation of a {@link java.lang.reflect.Method}, identifying the name, return type, parameter types and exception types. Actual Method objects are tied to a particular class, and don't compare well with other otherwise identical Methods from other classes or interface; MethodSignatures are distinct from classes and compare well.
Because the intended purpose is to compare methods from interfaces (which are always public and abstract) we don't bother to actually track the modifiers. In addition, at this time, MethodSignature
does not distinguish between instance and static methods.
This version of MethodSignature works with
loaded classes, and it usually used in the context of {@link org.apache.tapestry.ioc.services.ClassFab} to create new classes andsubclasses.