|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Class returnType,
String name,
Class[] parameterTypes,
Class[] exceptionTypes)
Deprecated. |
|
MethodSignature(Method m)
Deprecated. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Deprecated. Returns true if the other object is an instance of MethodSignature with identical values for return type, name, parameter types and exception types. |
Class[] |
getExceptionTypes()
Deprecated. Returns the exceptions for this method. |
Method |
getMethod()
Deprecated. If this signature was created from a method, return that method. |
String |
getName()
Deprecated. |
Class[] |
getParameterTypes()
Deprecated. Returns the parameter types for this method. |
Class |
getReturnType()
Deprecated. |
String |
getUniqueId()
Deprecated. Returns a string consisting of the name of the method and its parameter types. |
int |
hashCode()
Deprecated. |
boolean |
isOverridingSignatureOf(MethodSignature ms)
Deprecated. 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). |
String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodSignature(Class returnType, String name, Class[] parameterTypes, Class[] exceptionTypes)
public MethodSignature(Method m)
Method Detail |
---|
public Class[] getExceptionTypes()
public String getName()
public Method getMethod()
public Class[] getParameterTypes()
public Class getReturnType()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
isOverridingSignatureOf(MethodSignature)
public String toString()
toString
in class Object
public 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 |