|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
String type,
String name,
String[] parameterTypes,
String[] exceptionTypes)
|
|
TransformMethodSignature(int modifiers,
String type,
String signature,
String name,
String[] parameterTypes,
String[] exceptionTypes)
|
|
TransformMethodSignature(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(Object other)
|
String[] |
getExceptionTypes()
Returns a non-null array of the names of each declared exception type thrown by the method. |
String |
getMediumDescription()
Returns a shortened form of the string representation of the method. |
String |
getMethodName()
Returns the name of the method. |
int |
getModifiers()
Returns the set of modifier flags for this method. |
String[] |
getParameterTypes()
Returns an array of the type name for each parameter. |
String |
getReturnType()
Return the type name of the return type of the method. |
String |
getSignature()
|
int |
hashCode()
|
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(String name)
public TransformMethodSignature(int modifiers, String type, String name, String[] parameterTypes, String[] exceptionTypes)
public TransformMethodSignature(int modifiers, String type, String signature, String name, String[] parameterTypes, String[] exceptionTypes)
Method Detail |
---|
public String[] getExceptionTypes()
public String getMethodName()
public int getModifiers()
Modifier
public String getSignature()
public String[] getParameterTypes()
public String getReturnType()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(TransformMethodSignature o)
compareTo
in interface Comparable<TransformMethodSignature>
public String getMediumDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |