| java.lang.Object org.apache.tapestry.ioc.services.MethodSignature
MethodSignature | public class MethodSignature (Code) | | A representation of a
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
org.apache.tapestry.ioc.services.ClassFab to create new classes and
subclasses.
|
Method Summary | |
public boolean | equals(Object o) Returns true if the other object is an instance of MethodSignature with identical
values for return type, name, parameter types and exception types. | public Class[] | getExceptionTypes() Returns the exceptions for this method. | public String | getName() | public Class[] | getParameterTypes() Returns the parameter types for this method. | public Class | getReturnType() | public String | getUniqueId() Returns a string consisting of the name of the method and its parameter values. | public int | hashCode() | public boolean | isOverridingSignatureOf(MethodSignature ms) Returns true if this signature has the same return type, name and parameters types as the
method signature passed in, and this signature's exceptions "trump" (are the same as, or
super-implementations of, all exceptions thrown by the other method signature). | public String | toString() |
getExceptionTypes | public Class[] getExceptionTypes()(Code) | | Returns the exceptions for this method. Caution: do not modify the returned array. May return
null.
|
getParameterTypes | public Class[] getParameterTypes()(Code) | | Returns the parameter types for this method. May return null. Caution: do not modify the
returned array.
|
hashCode | public int hashCode()(Code) | | |
isOverridingSignatureOf | public boolean isOverridingSignatureOf(MethodSignature ms)(Code) | | Returns true if this signature has the same return type, name and parameters types as the
method signature passed in, and this signature's exceptions "trump" (are the same as, or
super-implementations of, all exceptions thrown by the other method signature).
|
|
|