| java.lang.Object org.apache.tapestry.services.MethodSignature
MethodSignature | public class MethodSignature implements Comparable<MethodSignature>(Code) | | A representation of a method signature, which consists of its name, modifiers (primarily,
visibility), return type, parameter types, and declared exception types.
Types are stored as class names (or primitive names) because the MethodSignature is often used in
situations where the actual class has not been loaded yet. When classes are already loaded (such
as, for use with
org.apache.hivemind.service.ClassFab ), then a different implementation
with the same name,
org.apache.tapestry.ioc.services.MethodSignature is used.
|
MethodSignature | public MethodSignature(String name)(Code) | | Convienience for adding a public void method with no parameters or exception types.
|
compareTo | public int compareTo(MethodSignature o)(Code) | | Sorting is primarily via method name. For methods with the same name, the second level of
sorting is by parameter count (ascending).
|
getExceptionTypes | public String[] getExceptionTypes()(Code) | | Returns a non-null array of the names of each declared exception type thrown by the method.
Calling code should not modify the array.
|
getMediumDescription | public String getMediumDescription()(Code) | | Returns a shortened form of the string representation of the method. It lists just the name
of the method and the types of any parameters, omitting return type, exceptions and
modifiers.
|
getMethodName | public String getMethodName()(Code) | | Returns the name of the method.
|
getParameterTypes | public String[] getParameterTypes()(Code) | | Returns an array of the type name for each parameter. Calling code should not modify the
array.
|
getReturnType | public String getReturnType()(Code) | | Return the type name of the return type of the method.
|
hashCode | public int hashCode()(Code) | | |
toString | public String toString()(Code) | | Returns the long form description of the signature. This includes modifiers, return type,
method name, parameters and thrown exceptions, formatter approximately as it would appear in
Java source (except that parameter names, which are not known, do no appear).
|
|
|