|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.services.MethodSignature
public class MethodSignature
A representation of a 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.
ClassFab to create new classes and subclasses.
| Constructor Summary | |
|---|---|
MethodSignature(java.lang.Class returnType,
java.lang.String name,
java.lang.Class[] parameterTypes,
java.lang.Class[] exceptionTypes)
|
|
MethodSignature(java.lang.reflect.Method m)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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. |
java.lang.Class[] |
getExceptionTypes()
Returns the exceptions for this method. |
java.lang.String |
getName()
|
java.lang.Class[] |
getParameterTypes()
Returns the parameter types for this method. |
java.lang.Class |
getReturnType()
|
java.lang.String |
getUniqueId()
Returns a string consisting of the name of the method and its parameter types. |
int |
hashCode()
|
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). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodSignature(java.lang.Class returnType,
java.lang.String name,
java.lang.Class[] parameterTypes,
java.lang.Class[] exceptionTypes)
public MethodSignature(java.lang.reflect.Method m)
| Method Detail |
|---|
public java.lang.Class[] getExceptionTypes()
public java.lang.String getName()
public java.lang.Class[] getParameterTypes()
public java.lang.Class getReturnType()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectisOverridingSignatureOf(MethodSignature)public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getUniqueId()
toString(), but omits the return type and information about thrown exceptions. A unique id is used by
MethodIterator to identify overlapping methods (methods with the same name and parameter types but with
different thrown exceptions).
isOverridingSignatureOf(MethodSignature)public boolean isOverridingSignatureOf(MethodSignature ms)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||