|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.services.TransformMethodSignature
public class TransformMethodSignature
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 signature is used withClassTransformation
(which operates on as-yet unloaded classes).
Constructor Summary | |
---|---|
TransformMethodSignature(int modifiers,
java.lang.String type,
java.lang.String name,
java.lang.String[] parameterTypes,
java.lang.String[] exceptionTypes)
|
|
TransformMethodSignature(int modifiers,
java.lang.String type,
java.lang.String signature,
java.lang.String name,
java.lang.String[] parameterTypes,
java.lang.String[] exceptionTypes)
|
|
TransformMethodSignature(java.lang.String name)
Convenience for adding a public void method with no parameters or exception types. |
Method Summary | |
---|---|
int |
compareTo(TransformMethodSignature o)
Sorting is primarily via method name. |
boolean |
equals(java.lang.Object other)
|
java.lang.String[] |
getExceptionTypes()
Returns a non-null array of the names of each declared exception type thrown by the method. |
java.lang.String |
getMediumDescription()
Returns a shortened form of the string representation of the method. |
java.lang.String |
getMethodName()
Returns the name of the method. |
int |
getModifiers()
Returns the set of modifier flags for this method. |
java.lang.String[] |
getParameterTypes()
Returns an array of the type name for each parameter. |
java.lang.String |
getReturnType()
Return the type name of the return type of the method. |
java.lang.String |
getSignature()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns the long form description of the signature. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransformMethodSignature(java.lang.String name)
public TransformMethodSignature(int modifiers, java.lang.String type, java.lang.String name, java.lang.String[] parameterTypes, java.lang.String[] exceptionTypes)
public TransformMethodSignature(int modifiers, java.lang.String type, java.lang.String signature, java.lang.String name, java.lang.String[] parameterTypes, java.lang.String[] exceptionTypes)
Method Detail |
---|
public java.lang.String[] getExceptionTypes()
public java.lang.String getMethodName()
public int getModifiers()
Modifier
public java.lang.String getSignature()
public java.lang.String[] getParameterTypes()
public java.lang.String getReturnType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(TransformMethodSignature o)
compareTo
in interface java.lang.Comparable<TransformMethodSignature>
public java.lang.String getMediumDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |